Exemplo n.º 1
0
void colorChooser::constructMenuObjects() {

  clearListAction_ = new QAction(tr("Clear \"Clicked colors\" list"), this);
  connect(clearListAction_, SIGNAL(triggered()),
          this, SLOT(clearList()));

  addZoomActionsToImageMenu();
  imageMenu()->addAction(imageInfoAction());
  imageMenu()->addAction(clearListAction_);
}
Exemplo n.º 2
0
void patternWindow::constructMenus() {

  imageMenu()->addAction(switchAction_);
  imageMenu()->addAction(zoomInAction());
  imageMenu()->addAction(zoomOutAction());
  imageMenu()->addAction(originalSizeAction());
  imageMenu()->addAction(gridAction_);
  imageMenu()->addAction(gridColorAction_);
  imageMenu()->addAction(imageInfoAction());
  helpMenu()->addAction(setPdfViewerAction_);

  imageListMenu_ = new QMenu(tr("I&mages"), this);
  menuBar()->insertMenu(helpMenu()->menuAction(), imageListMenu_);
  connect(imageListMenu_, SIGNAL(triggered(QAction* )),
          this, SLOT(processImageListMenu(QAction* )));
  imageListMenu_->addAction(deleteImageAction_);
  imageListMenu_->addSeparator();
}