diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-21 18:52:05 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-21 18:52:05 +0000 |
commit | 6aa5a11e56b977c26cb4e108e23ed191160ba801 (patch) | |
tree | d44138a4d6c4740732e0b5c36a4d5d28ea67495c /muse2/muse/app.cpp | |
parent | 74ef94afca796f9cdd2fe9b5eba0c60c3c9150d3 (diff) |
automatic maximizing for arranger when in traditional SDI mode
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r-- | muse2/muse/app.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp index 16b91d17..69e4525a 100644 --- a/muse2/muse/app.cpp +++ b/muse2/muse/app.cpp @@ -885,6 +885,7 @@ MusE::MusE(int argc, char** argv) : QMainWindow() mdiArea=new QMdiArea(this); + mdiArea->setOption(QMdiArea::DontMaximizeSubWindowOnActivation); setCentralWidget(mdiArea); connect(windowsTileAction, SIGNAL(activated()), mdiArea, SLOT(tileSubWindows())); connect(windowsCascadeAction, SIGNAL(activated()), mdiArea, SLOT(cascadeSubWindows())); @@ -1280,6 +1281,24 @@ void MusE::loadProjectFile1(const QString& name, bool songTemplate, bool loadAll showMarker(config.markerVisible); } + if (songTemplate) + { + // maximize the arranger in traditional SDI mode + if (TopWin::_defaultSubwin[TopWin::ARRANGER]) + { + bool maximizeArranger=true; + for (int i=0; i<TopWin::TOPLEVELTYPE_LAST_ENTRY; i++) + if ((i!=TopWin::ARRANGER) && TopWin::_defaultSubwin[i]) + { + maximizeArranger=false; + break; + } + + if (maximizeArranger) + arrangerView->showMaximized(); + } + } + } //--------------------------------------------------------- |