diff options
Diffstat (limited to 'randomtab.cpp')
-rw-r--r-- | randomtab.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/randomtab.cpp b/randomtab.cpp index 291dcd7..bb6b7c6 100644 --- a/randomtab.cpp +++ b/randomtab.cpp @@ -95,26 +95,26 @@ void RandomTab::setupGui(){ actorBox->setLayout(actorL); QGroupBox *actionBox = new QGroupBox(tr("Energize!")); - mRefresh = new QPushButton(QIcon(":/refresh.png"), tr("Refresh")); - connect(mRefresh, SIGNAL(clicked()), this, SLOT(refreshComboboxes())); - mClear = new QPushButton(QIcon(":/delete.png"), tr("Clear")); - connect(mClear, SIGNAL(clicked()), this, SLOT(clearAll())); - mSelect = new QPushButton(QIcon(":/huge_bra.png"), tr("Go!")); - connect(mSelect, SIGNAL(clicked()), this, SLOT(select())); + QPushButton *refreshB = new QPushButton(QIcon(":/refresh.png"), tr("Refresh")); + connect(refreshB, &QPushButton::clicked, this, &RandomTab::refreshComboboxes); + QPushButton *clearB = new QPushButton(QIcon(":/delete.png"), tr("Clear")); + connect(clearB, &QPushButton::clicked, this, &RandomTab::clearAll); + QPushButton *goB = new QPushButton(QIcon(":/huge_bra.png"), tr("Go!")); + connect(goB, &QPushButton::clicked, this, &RandomTab::select); QGridLayout *actionL = new QGridLayout; - actionL->addWidget(mClear, 0, 0); - actionL->addWidget(mRefresh, 0, 1); - actionL->addWidget(mSelect, 1, 0, 2, 0); + actionL->addWidget(clearB, 0, 0); + actionL->addWidget(refreshB, 0, 1); + actionL->addWidget(goB, 1, 0, 2, 0); actionBox->setLayout(actionL); QGroupBox *playBox = new QGroupBox(tr("Play")); - mPlayAll = new QPushButton(QIcon(":/gaping_ass.png"), tr("Play All")); - connect(mPlayAll, SIGNAL(clicked()), this, SLOT(playAll())); - mPlaySelected = new QPushButton(QIcon(":/big_ass.png"), tr("Play Selected")); - connect(mPlaySelected, SIGNAL(clicked()), this, SLOT(playSelected())); + QPushButton *playAllB = new QPushButton(QIcon(":/gaping_ass.png"), tr("Play All")); + connect(playAllB, &QPushButton::clicked, this, &RandomTab::playAll); + QPushButton *playSelectedB = new QPushButton(QIcon(":/big_ass.png"), tr("Play Selected")); + connect(playSelectedB, &QPushButton::clicked, this, &RandomTab::playSelected); QVBoxLayout *playL = new QVBoxLayout; - playL->addWidget(mPlaySelected); - playL->addWidget(mPlayAll); + playL->addWidget(playSelectedB); + playL->addWidget(playAllB); playBox->setLayout(playL); QWidget *leftWidget = new QWidget; @@ -132,7 +132,7 @@ void RandomTab::setupGui(){ mFileView->setRootIsDecorated(false); mFileView->setSelectionMode(QAbstractItemView::ExtendedSelection); mFileView->setSelectionBehavior(QAbstractItemView::SelectRows); - connect(mFileView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(playDoubleclicked(QModelIndex))); + connect(mFileView, &RandomFileView::doubleClicked, this, &RandomTab::playDoubleclicked); mFileModel = new QStandardItemModel; mFileProxy = new QSortFilterProxyModel; mFileProxy->setSourceModel(mFileModel); |