Commit 0a489361 authored by Jan Möbius's avatar Jan Möbius
Browse files

In multiView mode use the first examiner to provide the drawModes Menu

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4296 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 239a54c9
...@@ -84,16 +84,16 @@ void CoreWidget::setupMenuBar() ...@@ -84,16 +84,16 @@ void CoreWidget::setupMenuBar()
viewMenu_ = new QMenu(tr("&View")); viewMenu_ = new QMenu(tr("&View"));
menuBar()->addMenu(viewMenu_ ); menuBar()->addMenu(viewMenu_ );
if (examiner_widget_->getDrawMenu() != NULL) { if (examiner_widgets_[0]->getDrawMenu() != NULL) {
examiner_widget_->getDrawMenu()->setTitle("&DrawModes"); examiner_widgets_[0]->getDrawMenu()->setTitle("&DrawModes");
QAction* drawMenuAction = viewMenu_->addMenu(examiner_widget_->getDrawMenu() ); QAction* drawMenuAction = viewMenu_->addMenu(examiner_widgets_[0]->getDrawMenu() );
QIcon icon; QIcon icon;
icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"drawModes.png"); icon.addFile(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"drawModes.png");
drawMenuAction->setIcon(icon); drawMenuAction->setIcon(icon);
examiner_widget_->getDrawMenu()->setTearOffEnabled(true); examiner_widgets_[0]->getDrawMenu()->setTearOffEnabled(true);
} }
QIcon icon; QIcon icon;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment