Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QMenu.addAction()


    if (Global.showDeleted) {
      menu.addAction(restoreAction);
    } else {
      menu.addAction(addAction);
    }
    menu.addAction(deleteAction);
    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
    menu.addSeparator();
    menu.addAction(noteHistoryAction);
View Full Code Here


    } else {
      menu.addAction(addAction);
    }
    menu.addAction(deleteAction);
    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
    menu.addSeparator();
    menu.addAction(noteHistoryAction);
    menu.addAction(mergeNotesAction);
   
View Full Code Here

      menu.addAction(addAction);
    }
    menu.addAction(deleteAction);
    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
    menu.addSeparator();
    menu.addAction(noteHistoryAction);
    menu.addAction(mergeNotesAction);
   
    QMenu titleColorMenu = new QMenu();
View Full Code Here

      QAction synchronizeAction = addContextAction("synchronize", tr("Synchronize"));
      contextMenu.addAction(synchronizeAction);
      synchronizeAction.triggered.connect(this, "toggleSynchronizeButton(Boolean)");

      QAction printAction = addContextAction("print", tr("Print"));
      contextMenu.addAction(printAction);
      printAction.triggered.connect(this, "togglePrintButton(Boolean)");

      QAction tagAction = addContextAction("tag", tr("Tag"));
      contextMenu.addAction(tagAction);
      tagAction.triggered.connect(this, "toggleTagButton(Boolean)");
View Full Code Here

    menu.addAction(deleteAction);
    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
    menu.addSeparator();
    menu.addAction(noteHistoryAction);
    menu.addAction(mergeNotesAction);
   
    QMenu titleColorMenu = new QMenu();
    titleColorMenu.setTitle(tr("Title Color"));
    menu.addMenu(titleColorMenu);
View Full Code Here

    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
    menu.addSeparator();
    menu.addAction(noteHistoryAction);
    menu.addAction(mergeNotesAction);
   
    QMenu titleColorMenu = new QMenu();
    titleColorMenu.setTitle(tr("Title Color"));
    menu.addMenu(titleColorMenu);
    noteTitleColorWhite = new QAction(titleColorMenu);
View Full Code Here

      QAction printAction = addContextAction("print", tr("Print"));
      contextMenu.addAction(printAction);
      printAction.triggered.connect(this, "togglePrintButton(Boolean)");

      QAction tagAction = addContextAction("tag", tr("Tag"));
      contextMenu.addAction(tagAction);
      tagAction.triggered.connect(this, "toggleTagButton(Boolean)");
     
      QAction attributeAction = addContextAction("attribute", tr("Attribute"));
      contextMenu.addAction(attributeAction);
      attributeAction.triggered.connect(this, "toggleAttributeButton(Boolean)");
View Full Code Here

      noteTitleColorGray.setText(tr("Gray"));
      noteTitleColorCyan.setText(tr("Cyan"));
      noteTitleColorMagenta.setText(tr("Magenta"));
      notePinned.setText(tr("Pin/Unpin"));
     
      titleColorMenu.addAction(noteTitleColorWhite);
      titleColorMenu.addAction(noteTitleColorRed);
      titleColorMenu.addAction(noteTitleColorBlue);
      titleColorMenu.addAction(noteTitleColorGreen);
      titleColorMenu.addAction(noteTitleColorYellow);
      titleColorMenu.addAction(noteTitleColorBlack);
View Full Code Here

      noteTitleColorCyan.setText(tr("Cyan"));
      noteTitleColorMagenta.setText(tr("Magenta"));
      notePinned.setText(tr("Pin/Unpin"));
     
      titleColorMenu.addAction(noteTitleColorWhite);
      titleColorMenu.addAction(noteTitleColorRed);
      titleColorMenu.addAction(noteTitleColorBlue);
      titleColorMenu.addAction(noteTitleColorGreen);
      titleColorMenu.addAction(noteTitleColorYellow);
      titleColorMenu.addAction(noteTitleColorBlack);
      titleColorMenu.addAction(noteTitleColorGray);
View Full Code Here

      noteTitleColorMagenta.setText(tr("Magenta"));
      notePinned.setText(tr("Pin/Unpin"));
     
      titleColorMenu.addAction(noteTitleColorWhite);
      titleColorMenu.addAction(noteTitleColorRed);
      titleColorMenu.addAction(noteTitleColorBlue);
      titleColorMenu.addAction(noteTitleColorGreen);
      titleColorMenu.addAction(noteTitleColorYellow);
      titleColorMenu.addAction(noteTitleColorBlack);
      titleColorMenu.addAction(noteTitleColorGray);
      titleColorMenu.addAction(noteTitleColorCyan);
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.