summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-04-05 20:03:23 +0200
committerArno <arno@disconnect.de>2018-04-05 20:03:23 +0200
commit76e11b28a36fb38be9e0df7154e29591142b5eaf (patch)
tree1f8242bd589c192d2e520d9966547860d852da24 /shemov.cpp
parent26dfde02bd98a3a78ddacdb16681c640dfc1ad5e (diff)
downloadSheMov-76e11b28a36fb38be9e0df7154e29591142b5eaf.tar.gz
SheMov-76e11b28a36fb38be9e0df7154e29591142b5eaf.tar.bz2
SheMov-76e11b28a36fb38be9e0df7154e29591142b5eaf.zip
MovieWidget: don't show menuBar()
Also, remove some left over menus from old ArchiveView.
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 576611f..ef542da 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -208,14 +208,13 @@ void SheMov::configure(){
}
void SheMov::tabChanged(int newTab){
- if(newTab == FileManager){
+ if(newTab == FileManager || newTab == Movies){
menuBar()->setVisible(false);
}else{
menuBar()->setVisible(true);
}
mEditPicMenuA->setVisible(newTab == Pictures);
mViewPicMenuA->setVisible(newTab == Pictures);
- mArchiveMenuA->setVisible(newTab == Movies);
mPicActionGroup->setEnabled(newTab == Pictures);
mPVSelectAllA->disconnect();
mPVShowNPDialogA->setEnabled(newTab == FileManager);
@@ -507,10 +506,6 @@ void SheMov::createMenus(){
mEditPicMenu->addAction(mPWEditPicMappingsA);
mEditPicMenuA = menuBar()->addMenu(mEditPicMenu);
- //Archive edit menu: populated when creating context menu!
- mArchiveEditMenu = new QMenu(tr("&Edit"), this);
- mArchiveMenuA = menuBar()->addMenu(mArchiveEditMenu);
-
//Pictures view menu
mPicViewMenu = new QMenu(tr("&View"), this);
mPicViewMenu->addAction(mPVToggleA);
@@ -561,7 +556,7 @@ void SheMov::createMenus(){
// Random
mRandomEditMenu = mRandomTab->editMenu();
- mRandomEditMenuA = menuBar()->insertMenu(mArchiveMenuA, mRandomEditMenu);
+ mRandomEditMenuA = menuBar()->addMenu(mRandomEditMenu);
}
void SheMov::createToolBar(){