Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QTreeWidgetItem.text()


    QTreeWidgetItem root = invisibleRootItem();
    QTreeWidgetItem child;

    for (int i=0; i<root.childCount(); i++) {
      child = root.child(i);
      if (child.text(1).equals(guid)) {
        child.setSelected(true);
        return true;
      }
    }
    return false;
View Full Code Here


    QTreeWidgetItem root = invisibleRootItem();
    QTreeWidgetItem child;
   
    for (int i=0; i<root.childCount(); i++) {
      child = root.child(i);
      if (child.text(1).equals(item.text(1))) {
        child.setSelected(true);
        return;
      }
    }
  }
View Full Code Here

    QTreeWidgetItem root = invisibleRootItem();
    QTreeWidgetItem child;
   
    for (int i=0; i<root.childCount(); i++) {
      child = root.child(i);
      if (child.text(2).equals(item.text(2))) {
        child.setSelected(true);
        return;
      }
    }
   
View Full Code Here

    QTreeWidgetItem root = invisibleRootItem();
    QTreeWidgetItem child;

    for (int i=0; i<root.childCount(); i++) {
      child = root.child(i);
      if (child.text(2).equals(guid)) {
        child.setSelected(true);
        return true;
      }
    }
    return false;
View Full Code Here

    List<String> names = new ArrayList<String>();
    QTreeWidgetItem root = invisibleRootItem();
    QTreeWidgetItem child;
    for (int i=0; i<root.childCount(); i++) {
      child = root.child(i);
      String text = child.text(2);
      names.add(text);
    }
    return names;
  }
 
View Full Code Here

   
    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    QTreeWidgetItem currentSelection;
    for (int i=0; i<selections.size(); i++) {
      currentSelection = selections.get(0);
      String guid = currentSelection.text(2);
      if (guid.equalsIgnoreCase("")) {
         QMessageBox.critical(this, tr("Unable To Stack") ,tr("You can't stack the \"All Notebooks\" item."));
         return;
      }
      if (guid.equalsIgnoreCase("STACK")) {
View Full Code Here

       
    String stack = edit.getStackName();
   
    for (int i=0; i<selections.size(); i++) {
      currentSelection = selections.get(i);
      String guid = currentSelection.text(2);
      listManager.updateNotebookStack(guid, stack);
    }
    notebookIndexUpdated();
    logger.log(logger.HIGH, "Leaving NeverNote.stackNotebook");
  }
View Full Code Here

    NotebookEdit edit = new NotebookEdit();
   
    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    edit.setNotebook(currentSelection.text(0));
   
    String guid = currentSelection.text(2);
    if (!guid.equalsIgnoreCase("STACK")) {
      edit.setTitle(tr("Edit Notebook"));
      edit.setNotebooks(listManager.getNotebookIndex());
View Full Code Here

    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    edit.setNotebook(currentSelection.text(0));
   
    String guid = currentSelection.text(2);
    if (!guid.equalsIgnoreCase("STACK")) {
      edit.setTitle(tr("Edit Notebook"));
      edit.setNotebooks(listManager.getNotebookIndex());
      edit.setLocalCheckboxEnabled(false);
      for (int i=0; i<listManager.getNotebookIndex().size(); i++) {
View Full Code Here

    if (!edit.okPressed())
      return;
       
   
    if (guid.equalsIgnoreCase("STACK")) {
      conn.getNotebookTable().renameStacks(currentSelection.text(0), edit.getNotebook());
      for (int j=0; j<listManager.getNotebookIndex().size(); j++) {
        if (listManager.getNotebookIndex().get(j).getStack() != null &&
          listManager.getNotebookIndex().get(j).getStack().equalsIgnoreCase(currentSelection.text(0)))
            listManager.getNotebookIndex().get(j).setStack(edit.getNotebook());
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.