Resolved issue #284. Remove History icon from work menu, add to top menu.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-05-01 16:21:21 +03:00
parent 7e3b40b0dd
commit d2b55e0942
2 changed files with 8 additions and 2 deletions

View File

@ -950,7 +950,7 @@ void MainWindow::ToolBarDraws()
ui->toolBarDraws->addAction(ui->actionTable); ui->toolBarDraws->addAction(ui->actionTable);
ui->actionTable->setEnabled(false); ui->actionTable->setEnabled(false);
ui->toolBarDraws->addAction(ui->actionHistory); // Don't add to toolbar!
ui->actionHistory->setEnabled(false); ui->actionHistory->setEnabled(false);
connect(ui->actionHistory, &QAction::triggered, this, &MainWindow::ActionHistory); connect(ui->actionHistory, &QAction::triggered, this, &MainWindow::ActionHistory);

View File

@ -796,7 +796,6 @@
</property> </property>
<addaction name="actionNewDraw"/> <addaction name="actionNewDraw"/>
<addaction name="actionOptionDraw"/> <addaction name="actionOptionDraw"/>
<addaction name="actionHistory"/>
<addaction name="actionZoomIn"/> <addaction name="actionZoomIn"/>
<addaction name="actionZoomOut"/> <addaction name="actionZoomOut"/>
<addaction name="actionZoomFitBest"/> <addaction name="actionZoomFitBest"/>
@ -819,9 +818,16 @@
</property> </property>
<addaction name="actionCloseWindow"/> <addaction name="actionCloseWindow"/>
</widget> </widget>
<widget class="QMenu" name="menuHistory">
<property name="title">
<string>History</string>
</property>
<addaction name="actionHistory"/>
</widget>
<addaction name="menuFile"/> <addaction name="menuFile"/>
<addaction name="menuPatternPiece"/> <addaction name="menuPatternPiece"/>
<addaction name="menuMeasurements"/> <addaction name="menuMeasurements"/>
<addaction name="menuHistory"/>
<addaction name="menuWindow"/> <addaction name="menuWindow"/>
<addaction name="menuHelp"/> <addaction name="menuHelp"/>
</widget> </widget>