From 76e11b28a36fb38be9e0df7154e29591142b5eaf Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 5 Apr 2018 20:03:23 +0200 Subject: MovieWidget: don't show menuBar() Also, remove some left over menus from old ArchiveView. --- shemov.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'shemov.cpp') 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(){ -- cgit v1.2.3-70-g09d2