Package com.trolltech.qt.gui

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


   
    List<QTreeWidgetItem> selections = tagTree.selectedItems();
        for (int i=selections.size()-1; i>=0; i--) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);       
        removeTagItem(currentSelection.text(2));
        }
        tagIndexUpdated(true);
        tagTreeSelection();
        listManager.countTagResults(listManager.getNoteIndex());
//    tagTree.updateCounts(listManager.getTagCounter());
View Full Code Here


      List<QTreeWidgetItem> selections = tagTree.selectedItems();
      QTreeWidgetItem currentSelection;
      selectedTagGUIDs.clear();
      for (int i=0; i<selections.size(); i++) {
        currentSelection = selections.get(i);
        selectedTagGUIDs.add(currentSelection.text(2));
      }
      if (selections.size() > 0) {
        menuBar.tagEditAction.setEnabled(true);
        menuBar.tagDeleteAction.setEnabled(true);
        menuBar.tagIconAction.setEnabled(true);
View Full Code Here

    List<QTreeWidgetItem> selections = tagTree.selectedItems();
    if (selections.size() == 0)
      return;
   
    currentSelection = selections.get(0)
    String guid = currentSelection.text(2);

    QIcon currentIcon = currentSelection.icon(0);
    QIcon icon = conn.getTagTable().getIcon(guid);
    SetIcon dialog;
    if (icon == null) {
View Full Code Here

    SavedSearchEdit edit = new SavedSearchEdit();
    edit.setTitle(tr("Edit Search"));
    List<QTreeWidgetItem> selections = savedSearchTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    String guid = currentSelection.text(1);
    SavedSearch s = conn.getSavedSearchTable().getSavedSearch(guid);
    edit.setName(currentSelection.text(0));
    edit.setQuery(s.getQuery());
    edit.setSearchList(listManager.getSavedSearchIndex());
    edit.exec();
View Full Code Here

    List<QTreeWidgetItem> selections = savedSearchTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    String guid = currentSelection.text(1);
    SavedSearch s = conn.getSavedSearchTable().getSavedSearch(guid);
    edit.setName(currentSelection.text(0));
    edit.setQuery(s.getQuery());
    edit.setSearchList(listManager.getSavedSearchIndex());
    edit.exec();
 
    if (!edit.okPressed())
View Full Code Here

    List<QTreeWidgetItem> selections = savedSearchTree.selectedItems();
        for (int i=selections.size()-1; i>=0; i--) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
          for (int j=0; j<listManager.getSavedSearchIndex().size(); j++) {
            if (listManager.getSavedSearchIndex().get(j).getGuid().equals(currentSelection.text(1))) {
              conn.getSavedSearchTable().expungeSavedSearch(listManager.getSavedSearchIndex().get(j).getGuid(), true);
              listManager.getSavedSearchIndex().remove(j);
              j=listManager.getSavedSearchIndex().size()+1;
            }
          }
View Full Code Here

      List<QTreeWidgetItem> selections = savedSearchTree.selectedItems();
      QTreeWidgetItem currentSelection;
      selectedSavedSearchGUID = "";
      for (int i=0; i<selections.size(); i++) {
        currentSelection = selections.get(i);
        if (currentSelection.text(1).equals(currentGuid)) {
          currentSelection.setSelected(false);
        } else {
          selectedSavedSearchGUID = currentSelection.text(1);
        }
//        i = selections.size() +1;
View Full Code Here

      for (int i=0; i<selections.size(); i++) {
        currentSelection = selections.get(i);
        if (currentSelection.text(1).equals(currentGuid)) {
          currentSelection.setSelected(false);
        } else {
          selectedSavedSearchGUID = currentSelection.text(1);
        }
//        i = selections.size() +1;
      }
     
      // There is the potential for no notebooks to be selected if this
View Full Code Here

    List<QTreeWidgetItem> selections = savedSearchTree.selectedItems();
    if (selections.size() == 0)
      return;
   
    currentSelection = selections.get(0)
    String guid = currentSelection.text(1);

    QIcon currentIcon = currentSelection.icon(0);
    QIcon icon = conn.getSavedSearchTable().getIcon(guid);
    SetIcon dialog;
    if (icon == null) {
View Full Code Here

      // Find what notebook (if any) is selected.  We ignore stacks & the "All Notebooks".
      List<QTreeWidgetItem> selectedNotebook = notebookTree.selectedItems();
      if (selectedNotebook.size() > 0 && !selectedNotebook.get(0).text(0).equalsIgnoreCase("All Notebooks") && !selectedNotebook.get(0).text(2).equalsIgnoreCase("STACK")) {
        QTreeWidgetItem currentSelectedNotebook = selectedNotebook.get(0);
        String notebook;
        notebook = currentSelectedNotebook.text(2);
        conn.getNotebookTable().setSortOrder(notebook, column, order);
      }     
    }
   
    //***************************************************************
 
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.