diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2017-10-02 15:25:44 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-02 08:54:03 -0700 |
commit | 527078e277a2752273a7f299499d730a9705d801 (patch) | |
tree | b95f7f6146157a6d4617ef13179b617d87f87a82 /desktop-widgets/mainwindow.cpp | |
parent | 3e2a86cf80fec49b67f42ddf0c7a8ad4e9a6488a (diff) | |
download | subsurface-527078e277a2752273a7f299499d730a9705d801.tar.gz |
[Facebook] Use statusbar instead of popup messages
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 8a5b21a57..3408104de 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -12,6 +12,7 @@ #include <QSettings> #include <QShortcut> #include <QToolBar> +#include <QStatusBar> #include "core/version.h" #include "desktop-widgets/divelistview.h" @@ -334,6 +335,9 @@ void MainWindow::setupSocialNetworkMenu() FacebookManager *fb = FacebookManager::instance(); connect(fb, &FacebookManager::justLoggedIn, this, &MainWindow::facebookLoggedIn); connect(fb, &FacebookManager::justLoggedOut, this, &MainWindow::facebookLoggedOut); + connect(fb, &FacebookManager::sendMessage, [this](const QString& msg) { + statusBar()->showMessage(msg, 10000); // show message for 10 secs on the statusbar. + }); share_on_fb = new QAction(this); share_on_fb->setText(facebookPlugin->socialNetworkName()); share_on_fb->setIcon(QIcon(facebookPlugin->socialNetworkIcon())); |