summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Sitter <[email protected]>2016-05-13 08:46:22 +0200
committerHarald Sitter <[email protected]>2016-05-13 08:46:45 +0200
commit875d63d9a9da5ac1c3ef144ea74de7e6ef85a096 (patch)
tree8459551e628c53a12ada4b896213d528b640e3c5
parent9736490acdf9d7886eb14b6f79d65447dae2925f (diff)
when clicking a link in the kmessagewidget open the url
Reviewers: bgupta Reviewed By: bgupta Differential Revision: https://phabricator.kde.org/D1598
-rw-r--r--src/Gui/KSMainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp
index 04cd5a3..044e9cd 100644
--- a/src/Gui/KSMainWindow.cpp
+++ b/src/Gui/KSMainWindow.cpp
@@ -20,6 +20,7 @@
#include "KSMainWindow.h"
#include "Config.h"
+#include <QDesktopServices>
#include <QJsonArray>
#include <QPrintDialog>
#include <QShortcut>
@@ -152,6 +153,9 @@ void KSMainWindow::init()
KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true);
mDialogButtonBox->button(QDialogButtonBox::Help)->setMenu(helpMenu->menu());
+ // message widget
+ connect(mMessageWidget, &KMessageWidget::linkActivated, &QDesktopServices::openUrl);
+
// layouts
mDivider->setFrameShape(QFrame::HLine);