diff --git a/drkonqi/bugzillaintegration/reportassistantpages_base.cpp b/drkonqi/bugzillaintegration/reportassistantpages_base.cpp index e2ea12013..ad48e90e7 100644 --- 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 @@ void ConclusionPage::finishClicked() 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 index 36bd90c9c..9c40a837d 100644 --- 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::sendError(const QString & errorString, const QString & ex 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 index e0dc35be6..d8b73b958 100644 --- 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 index 9bcafb718..db7ad60a6 100644 --- a/runners/bookmarks/bookmarksrunner.cpp +++ b/runners/bookmarks/bookmarksrunner.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -129,7 +130,7 @@ void BookmarksRunner::run(const Plasma::RunnerContext &context, const Plasma::Qu 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 index 6571459df..4075a292a 100644 --- a/runners/windows/windowsrunner.cpp +++ b/runners/windows/windowsrunner.cpp @@ -75,7 +75,7 @@ void WindowsRunner::gatherInfo() } 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 index 3214b7fee..23b02b1a1 100644 --- a/systemmonitor/kdedksysguard.cpp +++ b/systemmonitor/kdedksysguard.cpp @@ -38,6 +38,7 @@ K_PLUGIN_FACTORY_WITH_JSON(KSysGuardFactory, registerPlugin();) KDEDKSysGuard::KDEDKSysGuard(QObject* parent, const QVariantList&) + : KDEDModule(parent) { QTimer::singleShot(0, this, &KDEDKSysGuard::init); }