diff options
author | Arno <arno@disconnect.de> | 2017-02-26 13:24:55 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-02-26 13:24:55 +0100 |
commit | 707853a339a804c9fe90e8ce5b7743c131b75dc1 (patch) | |
tree | a469d6064a8964cda4432400a80f8e10025d8fa6 /indexerwidget.cpp | |
parent | 231aa131e6ed86dafa3ff94b4ca7b6a0aa4773e4 (diff) | |
download | BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.tar.gz BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.tar.bz2 BeetPlayer-707853a339a804c9fe90e8ce5b7743c131b75dc1.zip |
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.
Diffstat (limited to 'indexerwidget.cpp')
-rw-r--r-- | indexerwidget.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
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); |