diff options
author | Claudio Maradonna <penguyman@stronzi.org> | 2018-05-15 11:12:13 +0200 |
---|---|---|
committer | Claudio Maradonna <penguyman@stronzi.org> | 2018-05-15 11:12:13 +0200 |
commit | f9e7167bfb191c061cf6bcd964c91f2ebb546745 (patch) | |
tree | 41fda48716a72b1f801b9c6644f5fc0a45ef1758 /main | |
parent | c8e59dd4ba51ae73ca0e54e52a0309e6cd985938 (diff) |
Converted most of Qt4 signals to Qt5 style. Fixed BUG with main folder hidden (possible regression for Windows users and dot folders)
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/main.cpp b/main/main.cpp index 41fcd955..975efe92 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -85,10 +85,11 @@ int main(int argc, char *argv[]) { app.setActiveWindow(&w); app.setWindowIcon(QIcon(":artwork/icon.png")); - QObject::connect(&app, SIGNAL(aboutToQuit()), &w, SLOT(clearClipboard())); + QObject::connect(&app, &QApplication::aboutToQuit, &w, + &MainWindow::clearClipboard); #if SINGLE_APP - QObject::connect(&app, SIGNAL(messageAvailable(QString)), &w, - SLOT(messageAvailable(QString))); + QObject::connect(&app, &SingleApplication::messageAvailable, &w, + &MainWindow::messageAvailable); #endif w.show(); |