From b16937e72db86e3ae1581fd1c7b91c25bf1f157f Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 29 Sep 2018 18:09:35 +0200 Subject: Finally get rid of menuBar()!!!! --- randomtab.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'randomtab.cpp') diff --git a/randomtab.cpp b/randomtab.cpp index 893b327..3c01514 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -45,7 +45,6 @@ RandomTab::RandomTab(QWidget *parent) : QWidget(parent) { mActorModel = new QStandardItemModel(this); setupModels(); setupGui(); - setupActions(); mFileView->setContextMenu(mContextMenu); clearAll(); readSettings(); @@ -179,22 +178,6 @@ void RandomTab::setupGui(){ setLayout(mainLayout); } -void RandomTab::setupActions(){ - mRefreshA = new QAction(QIcon(":/refresh.png"), tr("Refresh")); - connect(mRefreshA, SIGNAL(triggered()), this, SLOT(refreshComboboxes())); - mClearA = new QAction(QIcon(":/delete.png"), tr("Clear"), this); - connect(mClearA, SIGNAL(triggered()), this, SLOT(clearAll())); - mConfigureA = new QAction(QIcon(":/chastity_belt.png"), tr("Configure..."), this); - connect(mConfigureA, SIGNAL(triggered()), this, SIGNAL(configure())); - - mEditMenu = new QMenu(tr("&Edit"), this); - mEditMenu->addSeparator(); - mEditMenu->addAction(mRefreshA); - mEditMenu->addAction(mClearA); - mEditMenu->addSeparator(); - mEditMenu->addAction(mConfigureA); -} - void RandomTab::writeSettings(){ QSettings s; QStringList selGenres; -- cgit v1.2.3-70-g09d2