Package com.trolltech.qt.gui

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


    menu.addAction(addAction);
    menu.addAction(editAction);
    menu.addAction(deleteAction);
    menu.addAction(stackAction);
    menu.addSeparator();
    menu.addAction(publishAction);
    menu.addAction(shareAction);
    menu.addSeparator();
    menu.addAction(iconAction);
    menu.exec(event.globalPos());
  }
View Full Code Here


    menu.addAction(editAction);
    menu.addAction(deleteAction);
    menu.addAction(stackAction);
    menu.addSeparator();
    menu.addAction(publishAction);
    menu.addAction(shareAction);
    menu.addSeparator();
    menu.addAction(iconAction);
    menu.exec(event.globalPos());
  }
 
View Full Code Here

    menu.addAction(stackAction);
    menu.addSeparator();
    menu.addAction(publishAction);
    menu.addAction(shareAction);
    menu.addSeparator();
    menu.addAction(iconAction);
    menu.exec(event.globalPos());
  }
 
 
  @Override
View Full Code Here

  public QMenu createPopupMenu() {
      QMenu contextMenu = super.createPopupMenu();
     
      contextMenu.addSeparator();
      QAction prevAction = addContextAction("prevArrow", tr("Previous Arrow"));
      contextMenu.addAction(prevAction);
      prevAction.triggered.connect(this, "togglePrevArrowButton(Boolean)");

      QAction nextAction = addContextAction("nextArrow", tr("Next Arrow"));
      contextMenu.addAction(nextAction);
      nextAction.triggered.connect(this, "toggleNextArrowButton(Boolean)");
View Full Code Here

      QAction prevAction = addContextAction("prevArrow", tr("Previous Arrow"));
      contextMenu.addAction(prevAction);
      prevAction.triggered.connect(this, "togglePrevArrowButton(Boolean)");

      QAction nextAction = addContextAction("nextArrow", tr("Next Arrow"));
      contextMenu.addAction(nextAction);
      nextAction.triggered.connect(this, "toggleNextArrowButton(Boolean)");

      QAction upAction = addContextAction("upArrow", tr("Up Arrow"));
      contextMenu.addAction(upAction);
      upAction.triggered.connect(this, "toggleUpArrowButton(Boolean)");
View Full Code Here

      QAction nextAction = addContextAction("nextArrow", tr("Next Arrow"));
      contextMenu.addAction(nextAction);
      nextAction.triggered.connect(this, "toggleNextArrowButton(Boolean)");

      QAction upAction = addContextAction("upArrow", tr("Up Arrow"));
      contextMenu.addAction(upAction);
      upAction.triggered.connect(this, "toggleUpArrowButton(Boolean)");

      QAction downAction = addContextAction("downArrow", tr("Down Arrow"));
      contextMenu.addAction(downAction);
      downAction.triggered.connect(this, "toggleDownArrowButton(Boolean)");
View Full Code Here

      QAction upAction = addContextAction("upArrow", tr("Up Arrow"));
      contextMenu.addAction(upAction);
      upAction.triggered.connect(this, "toggleUpArrowButton(Boolean)");

      QAction downAction = addContextAction("downArrow", tr("Down Arrow"));
      contextMenu.addAction(downAction);
      downAction.triggered.connect(this, "toggleDownArrowButton(Boolean)");

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

 
  @Override
  public void contextMenuEvent(QContextMenuEvent event) {
    QMenu menu = new QMenu(this);
    if (Global.showDeleted) {
      menu.addAction(restoreAction);
    } else {
      menu.addAction(addAction);
    }
    menu.addAction(deleteAction);
    menu.addSeparator();
View Full Code Here

  public void contextMenuEvent(QContextMenuEvent event) {
    QMenu menu = new QMenu(this);
    if (Global.showDeleted) {
      menu.addAction(restoreAction);
    } else {
      menu.addAction(addAction);
    }
    menu.addAction(deleteAction);
    menu.addSeparator();
    menu.addAction(duplicateAction);
    menu.addAction(copyAsUrlAction);
View Full Code Here

      QAction downAction = addContextAction("downArrow", tr("Down Arrow"));
      contextMenu.addAction(downAction);
      downAction.triggered.connect(this, "toggleDownArrowButton(Boolean)");

      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)");
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.