diff --git a/drkonqi/bugzillaintegration/reportassistantpages_base.cpp b/drkonqi/bugzillaintegration/reportassistantpages_base.cpp --- a/drkonqi/bugzillaintegration/reportassistantpages_base.cpp +++ b/drkonqi/bugzillaintegration/reportassistantpages_base.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -237,10 +238,11 @@ subject= subject.arg(crashedApp->datetime().toString(QStringLiteral("yyyy-MM-dd"))); KToolInvocation::invokeMailer(reportAddress, QLatin1String(""), QLatin1String("") , subject, report); } else { + QUrl url(reportAddress); if (QUrl(reportAddress).isRelative()) { //Scheme is missing - reportAddress = QString::fromLatin1("http://%1").arg(reportAddress); + url = QUrl(QString::fromLatin1("http://%1").arg(reportAddress)); } - KToolInvocation::invokeBrowser(reportAddress); + QDesktopServices::openUrl(url); } //Show a copy of the bug reported diff --git a/drkonqi/bugzillaintegration/reportassistantpages_bugzilla.cpp b/drkonqi/bugzillaintegration/reportassistantpages_bugzilla.cpp --- a/drkonqi/bugzillaintegration/reportassistantpages_bugzilla.cpp +++ b/drkonqi/bugzillaintegration/reportassistantpages_bugzilla.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -759,7 +760,7 @@ void BugzillaSendPage::finishClicked() { if (ui.m_launchPageOnFinish->isChecked() && !reportUrl.isEmpty()) { - KToolInvocation::invokeBrowser(reportUrl); + QDesktopServices::openUrl(QUrl(reportUrl)); } if (ui.m_restartAppOnFinish->isChecked()) { DrKonqi::crashedApplication()->restart(); diff --git a/klipper/clipcommandprocess.h b/klipper/clipcommandprocess.h --- a/klipper/clipcommandprocess.h +++ b/klipper/clipcommandprocess.h @@ -25,7 +25,7 @@ class ClipAction; class History; -class ClipCommand; +struct ClipCommand; class HistoryItem; class ClipCommandProcess : public KProcess diff --git a/runners/bookmarks/bookmarksrunner.cpp b/runners/bookmarks/bookmarksrunner.cpp --- a/runners/bookmarks/bookmarksrunner.cpp +++ b/runners/bookmarks/bookmarksrunner.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -129,7 +130,7 @@ url.setScheme(QStringLiteral("http")); } - KToolInvocation::invokeBrowser(url.url()); + QDesktopServices::openUrl(url); } QMimeData * BookmarksRunner::mimeDataForMatch(const Plasma::QueryMatch &match) diff --git a/runners/windows/windowsrunner.cpp b/runners/windows/windowsrunner.cpp --- a/runners/windows/windowsrunner.cpp +++ b/runners/windows/windowsrunner.cpp @@ -75,7 +75,7 @@ } foreach (const WId w, KWindowSystem::windows()) { - KWindowInfo info = KWindowSystem::windowInfo(w, NET::WMWindowType | NET::WMDesktop | + KWindowInfo info(w, NET::WMWindowType | NET::WMDesktop | NET::WMState | NET::XAWMState | NET::WMName, NET::WM2WindowClass | NET::WM2WindowRole | NET::WM2AllowedActions); diff --git a/systemmonitor/kdedksysguard.cpp b/systemmonitor/kdedksysguard.cpp --- a/systemmonitor/kdedksysguard.cpp +++ b/systemmonitor/kdedksysguard.cpp @@ -38,6 +38,7 @@ registerPlugin();) KDEDKSysGuard::KDEDKSysGuard(QObject* parent, const QVariantList&) + : KDEDModule(parent) { QTimer::singleShot(0, this, &KDEDKSysGuard::init); }