Resolved Issue #471. Add a 'Show/Hide' button for measurement diagram in Tape
--HG-- branch : develop
This commit is contained in:
parent
569b666756
commit
86de5ba274
|
@ -8,5 +8,6 @@
|
||||||
<file>tapeicon/24x24/red_plus.png</file>
|
<file>tapeicon/24x24/red_plus.png</file>
|
||||||
<file>tapeicon/24x24/padlock_locked.png</file>
|
<file>tapeicon/24x24/padlock_locked.png</file>
|
||||||
<file>tapeicon/24x24/padlock_opened.png</file>
|
<file>tapeicon/24x24/padlock_opened.png</file>
|
||||||
|
<file>tapeicon/24x24/mannequin.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
BIN
src/app/tape/share/resources/tapeicon/24x24/mannequin.png
Normal file
BIN
src/app/tape/share/resources/tapeicon/24x24/mannequin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 520 B |
|
@ -97,7 +97,7 @@ TMainWindow::TMainWindow(QWidget *parent)
|
||||||
labelGradationSizes(nullptr),
|
labelGradationSizes(nullptr),
|
||||||
labelPatternUnit(nullptr),
|
labelPatternUnit(nullptr),
|
||||||
actionDockDiagram(nullptr),
|
actionDockDiagram(nullptr),
|
||||||
dockDiagramVisible(false),
|
dockDiagramVisible(true),
|
||||||
isInitialized(false),
|
isInitialized(false),
|
||||||
recentFileActs(),
|
recentFileActs(),
|
||||||
separatorAct(nullptr)
|
separatorAct(nullptr)
|
||||||
|
@ -1757,7 +1757,9 @@ void TMainWindow::SetupMenu()
|
||||||
actionDockDiagram = ui->dockWidgetDiagram->toggleViewAction();
|
actionDockDiagram = ui->dockWidgetDiagram->toggleViewAction();
|
||||||
actionDockDiagram->setMenuRole(QAction::NoRole);
|
actionDockDiagram->setMenuRole(QAction::NoRole);
|
||||||
ui->menuMeasurements->addAction(actionDockDiagram);
|
ui->menuMeasurements->addAction(actionDockDiagram);
|
||||||
|
ui->mainToolBar->addAction(actionDockDiagram);
|
||||||
actionDockDiagram->setEnabled(false);
|
actionDockDiagram->setEnabled(false);
|
||||||
|
actionDockDiagram->setIcon(QIcon("://tapeicon/24x24/mannequin.png"));
|
||||||
|
|
||||||
// Window
|
// Window
|
||||||
connect(ui->menuWindow, &QMenu::aboutToShow, this, &TMainWindow::AboutToShowWindowMenu);
|
connect(ui->menuWindow, &QMenu::aboutToShow, this, &TMainWindow::AboutToShowWindowMenu);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user