aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditor.h
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2015-12-03 21:31:56 +0100
committerJochen Becher <jochen_becher@gmx.de>2015-12-08 10:00:54 +0000
commit0750fd6de53cc70de67913372088309fe4101644 (patch)
tree9315980b1edebc7845c6f2d90d3eabe14cd436b8 /src/plugins/modeleditor/modeleditor.h
parent90ab6e9b949a7162f4786dff2258bbd92df5a2d3 (diff)
ModelEditor: Store last used toolbar in diagram
Opening a diagram will automatically show the toolbar which was lastly used for that diagram. Change-Id: Ia78225ca0bd3d9fbebfcfd22691bcc702e69e5ea Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/modeleditor/modeleditor.h')
-rw-r--r--src/plugins/modeleditor/modeleditor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/modeleditor/modeleditor.h b/src/plugins/modeleditor/modeleditor.h
index 09d62c3af4..07ede04867 100644
--- a/src/plugins/modeleditor/modeleditor.h
+++ b/src/plugins/modeleditor/modeleditor.h
@@ -128,6 +128,7 @@ private:
void onRightSplitterChanged(const QByteArray &state);
void onRightHorizSplitterMoved(int pos, int index);
void onRightHorizSplitterChanged(const QByteArray &state);
+ void onToolbarSelectionChanged();
void initToolbars();
void openDiagram(qmt::MDiagram *diagram, bool addToHistory);
@@ -141,6 +142,7 @@ private:
void updateDiagramSelector();
void onDiagramSelectorSelected(int index);
QString buildDiagramLabel(const qmt::MDiagram *diagram);
+ void storeToolbarIdInDiagram(qmt::MDiagram *diagram);
void addToNavigationHistory(const qmt::MDiagram *diagram);
QByteArray saveState(const qmt::MDiagram *diagram) const;