summaryrefslogtreecommitdiffstats
path: root/indexerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indexerwidget.cpp')
-rw-r--r--indexerwidget.cpp20
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);