From 707853a339a804c9fe90e8ce5b7743c131b75dc1 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 26 Feb 2017 13:24:55 +0100 Subject: Artwork and GUI modifications Added the necessary QActions. Except the ConfigAction they don't do anything yet, but they have nice icons :) I got rid of the menuBar(tm) and added a QToolBar to the center widget instead. --- indexerwidget.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'indexerwidget.cpp') diff --git a/indexerwidget.cpp b/indexerwidget.cpp index e1643fa..c5c8bda 100644 --- a/indexerwidget.cpp +++ b/indexerwidget.cpp @@ -32,9 +32,6 @@ IndexerWidget::IndexerWidget(QWidget *parent) : QWidget(parent) { connect(mReader, SIGNAL(message(QString)), this, SLOT(addToLog(QString))); connect(mReader, SIGNAL(errorMsg(QString)), this, SLOT(addToError(QString))); - //misc - createMenus(); - //layout QVBoxLayout *mainLayout = new QVBoxLayout; QHBoxLayout *buttonLayout = new QHBoxLayout; @@ -66,23 +63,6 @@ void IndexerWidget::addToError(QString msg){ mError->append(msg); } -void IndexerWidget::createMenus(){ - QMenu *fileMenu = new QMenu(tr("&File")); - mStartIndexingA = new QAction(tr("&Start indexing"), this); - connect(mStartIndexingA, SIGNAL(triggered()), this, SLOT(startIndexing())); - fileMenu->addAction(mStartIndexingA); - mStopIndexingA = new QAction(tr("Sto&p indexing"), this); - connect(mStopIndexingA, SIGNAL(triggered()), this, SLOT(stopIndexing())); - fileMenu->addAction(mStopIndexingA); - fileMenu->addSeparator(); - fileMenu->addAction(Globals::instance()->action(Globals::QuitAction)); - mMenus.append(fileMenu); - QMenu *editMenu = new QMenu(tr("&Edit")); - editMenu->addAction(Globals::instance()->action(Globals::ConfigAction)); - mMenus.append(editMenu); -} - - BeetReader::BeetReader() : mCanceled(false){ mDb = QSqlDatabase::database("beetplayerdb"); mInsertArtistsQ = new QSqlQuery(mDb); -- cgit v1.2.3-70-g09d2