Resolved Issue #471. Add a 'Show/Hide' button for measurement diagram in Tape

--HG--
branch : develop
This commit is contained in:
Valentina Zhuravska 2016-04-25 20:00:03 +03:00
parent 569b666756
commit 86de5ba274
3 changed files with 4 additions and 1 deletions

View File

@ -8,5 +8,6 @@
<file>tapeicon/24x24/red_plus.png</file>
<file>tapeicon/24x24/padlock_locked.png</file>
<file>tapeicon/24x24/padlock_opened.png</file>
<file>tapeicon/24x24/mannequin.png</file>
</qresource>
</RCC>

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

View File

@ -97,7 +97,7 @@ TMainWindow::TMainWindow(QWidget *parent)
labelGradationSizes(nullptr),
labelPatternUnit(nullptr),
actionDockDiagram(nullptr),
dockDiagramVisible(false),
dockDiagramVisible(true),
isInitialized(false),
recentFileActs(),
separatorAct(nullptr)
@ -1757,7 +1757,9 @@ void TMainWindow::SetupMenu()
actionDockDiagram = ui->dockWidgetDiagram->toggleViewAction();
actionDockDiagram->setMenuRole(QAction::NoRole);
ui->menuMeasurements->addAction(actionDockDiagram);
ui->mainToolBar->addAction(actionDockDiagram);
actionDockDiagram->setEnabled(false);
actionDockDiagram->setIcon(QIcon("://tapeicon/24x24/mannequin.png"));
// Window
connect(ui->menuWindow, &QMenu::aboutToShow, this, &TMainWindow::AboutToShowWindowMenu);