Commit e8b7c6d5 authored by Christophe Courtaut's avatar Christophe Courtaut

Moved Show/Hide toggle from view to window menu

parent 3b702496
......@@ -56,7 +56,7 @@ void DockWidgetManager::addDockedWidget( QWidget *widget,
dock->setAllowedAreas( areas );
dock->setFeatures( features );
m_mainWin->addDockWidget( startArea, dock );
m_mainWin->registerWidgetInViewMenu( dock );
m_mainWin->registerWidgetInWindowMenu( dock );
widget->show();
}
......
......@@ -360,9 +360,9 @@ void MainWindow::on_actionFullscreen_triggered( bool checked )
showNormal();
}
void MainWindow::registerWidgetInViewMenu( QDockWidget* widget )
void MainWindow::registerWidgetInWindowMenu( QDockWidget* widget )
{
m_ui.menuView->addAction( widget->toggleViewAction() );
m_ui.menuWindow->addAction( widget->toggleViewAction() );
}
void MainWindow::mediaListItemDoubleClicked( QListWidgetItem* qItem )
......
......@@ -48,7 +48,7 @@ class MainWindow : public QMainWindow
public:
explicit MainWindow( QWidget *parent = 0 );
void registerWidgetInViewMenu( QDockWidget* widget );
void registerWidgetInWindowMenu( QDockWidget* widget );
~MainWindow();
public slots:
......
......@@ -70,8 +70,6 @@
<property name="title">
<string>Window</string>
</property>
<addaction name="actionMedia_Library"/>
<addaction name="actionPreview"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment