From 6aa5a11e56b977c26cb4e108e23ed191160ba801 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Sun, 21 Aug 2011 18:52:05 +0000 Subject: automatic maximizing for arranger when in traditional SDI mode --- muse2/muse/app.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'muse2/muse/app.cpp') 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; ishowMaximized(); + } + } + } //--------------------------------------------------------- -- cgit v1.2.3