summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-08-14 20:55:27 +0000
committerFlorian Jung <flo@windfisch.org>2011-08-14 20:55:27 +0000
commit078e927639369928a6fa0483c82867dae6cbf9a2 (patch)
treea4a2ede9fab58a3a284af9ec1ca1096de64995f2 /muse2/muse/app.cpp
parent01d2680f0d18f7783ca1e1f48098590cd0317284 (diff)
added "As subwindow" menu entries and made them work
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp25
1 files changed, 14 insertions, 11 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index cb1b9363..29f2dbc1 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -878,10 +878,9 @@ MusE::MusE(int argc, char** argv) : QMainWindow()
arrangerView->hide();
arranger=arrangerView->getArranger();
- //QMdiSubWindow* subwin=new QMdiSubWindow(this); //FINDMICHJETZT
- //subwin->setWidget(arrangerView);
- //mdiArea->addSubWindow(subwin);
- mdiArea->addSubWindow(arrangerView->createMdiWrapper());
+ //mdiArea->addSubWindow(arrangerView->createMdiWrapper());
+ arrangerView->setIsMdiWin(true);
+
//---------------------------------------------------
// read list of "Recent Projects"
@@ -3075,11 +3074,11 @@ void MusE::setCurrentMenuSharingTopwin(TopWin* win)
+ for (list<QMenu*>::iterator it = leadingMenus.begin(); it!=leadingMenus.end(); it++)
+ menuBar()->addMenu(*it);
+
if (win)
{
- for (list<QMenu*>::iterator it = leadingMenus.begin(); it!=leadingMenus.end(); it++)
- menuBar()->addMenu(*it);
-
const QList<QAction*>& actions=win->menuBar()->actions();
for (QList<QAction*>::const_iterator it=actions.begin(); it!=actions.end(); it++)
{
@@ -3088,9 +3087,6 @@ void MusE::setCurrentMenuSharingTopwin(TopWin* win)
menuBar()->addAction(*it);
}
- for (list<QMenu*>::iterator it = trailingMenus.begin(); it!=trailingMenus.end(); it++)
- menuBar()->addMenu(*it);
-
const list<QToolBar*>& toolbars=win->toolbars();
@@ -3111,6 +3107,13 @@ void MusE::setCurrentMenuSharingTopwin(TopWin* win)
foreignToolbars.push_back(NULL);
}
}
- //TODO FINDMICHJETZT
+
+ for (list<QMenu*>::iterator it = trailingMenus.begin(); it!=trailingMenus.end(); it++)
+ menuBar()->addMenu(*it);
}
}
+
+void MusE::addMdiSubWindow(QMdiSubWindow* win)
+{
+ mdiArea->addSubWindow(win);
+}