summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shemovcleaner.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/shemovcleaner.cpp b/shemovcleaner.cpp
index 4a6555e..8aa5e2d 100644
--- a/shemovcleaner.cpp
+++ b/shemovcleaner.cpp
@@ -74,23 +74,23 @@ ShemovCleaner::ShemovCleaner(QWidget *parent, Qt::WindowFlags f) : QMainWindow(p
mTab->addTab(mSearchTab, tr("Searc&h"));
setCentralWidget(mTab);
- connect(mTorrentTab, SIGNAL(statusMessage(QString)), this, SLOT(statusBarMessage(QString)));
- connect(mTorrentTab, SIGNAL(selectionCountChanged(QString)), this, SLOT(setSelectionCount(QString)));
- connect(mTorrentTab, SIGNAL(freeSpaceChanged(QString)), this, SLOT(updateFreeSpace(QString)));
- connect(mFileTab, SIGNAL(statusMessage(QString)), this, SLOT(statusBarMessage(QString)));
- connect(mFileTab, SIGNAL(selectionCountChanged(QString)), this, SLOT(setSelectionCount(QString)));
- connect(mFileTab, SIGNAL(durationChanged(QString)), this, SLOT(setDuration(QString)));
- connect(mFileTab, SIGNAL(freeSpaceChanged(QString)), this, SLOT(updateFreeSpace(QString)));
- connect(mTab, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
+ connect(mTorrentTab, &TorrentWidget::statusMessage, this, &ShemovCleaner::statusBarMessage);
+ connect(mTorrentTab, &TorrentWidget::selectionCountChanged, this, &ShemovCleaner::setSelectionCount);
+ connect(mTorrentTab, &TorrentWidget::freeSpaceChanged, this, &ShemovCleaner::updateFreeSpace);
+ connect(mFileTab, &FileWidget::statusMessage, this, &ShemovCleaner::statusBarMessage);
+ connect(mFileTab, &FileWidget::selectionCountChanged, this, &ShemovCleaner::setSelectionCount);
+ connect(mFileTab, &FileWidget::durationChanged, this, &ShemovCleaner::setDuration);
+ connect(mFileTab, &FileWidget::freeSpaceChanged, this, &ShemovCleaner::updateFreeSpace);
+ connect(mTab, &QTabWidget::currentChanged, this, &ShemovCleaner::tabChanged);
connect(this, &ShemovCleaner::configurationChanged, mFileTab, &FileWidget::readSettings);
QMenu *helpMenu = new QMenu(tr("&Help"));
QAction *aboutThisA = new QAction(tr("About ShemovCleaner..."), this);
- connect(aboutThisA, SIGNAL(triggered()), this, SLOT(aboutThisProgram()));
+ connect(aboutThisA, &QAction::triggered, this, &ShemovCleaner::aboutThisProgram);
helpMenu->addAction(aboutThisA);
helpMenu->addSeparator();
QAction *aboutQtA = new QAction(tr("About Qt..."), this);
- connect(aboutQtA, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+ connect(aboutQtA, &QAction::triggered, qApp, &QApplication::aboutQt);
helpMenu->addAction(aboutQtA);
mTorrentTab->menuBar()->addMenu(helpMenu);
@@ -223,11 +223,11 @@ void ShemovCleaner::createStatusBar(){
void ShemovCleaner::createGlobalActions(){
QAction *quitA = new QAction(tr("Quit"), this);
quitA->setShortcut(tr("CTRL+Q"));
- connect(quitA, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
+ connect(quitA, &QAction::triggered, qApp, &QApplication::closeAllWindows);
quitA->setData(Globals::QuitAction);
Globals::instance()->addAction(quitA);
QAction *configA = new QAction(QIcon(":/chastity_belt.png"), tr("Configure..."), this);
- connect(configA, SIGNAL(triggered()), this, SLOT(configure()));
+ connect(configA, &QAction::triggered, this, &ShemovCleaner::configure);
configA->setData(Globals::ConfigAction);
Globals::instance()->addAction(configA);
}