Commit bffb7e08 authored by Dominik Haumann's avatar Dominik Haumann

port KToolInvocation to KHelpClient

parent f5915243
......@@ -54,7 +54,7 @@
#include <KMultiTabBar>
#include <KTipDialog>
#include <KStringHandler>
#include <KToolInvocation>
#include <khelpclient.h>
#include <KAuthorized>
#include <KRun>
#include <KRecentFilesAction>
......@@ -782,7 +782,7 @@ void KateMainWindow::slotOpenWithMenuAction(QAction* a)
void KateMainWindow::pluginHelp()
{
KToolInvocation::invokeHelp (QString(), "kate-plugins");
KHelpClient::invokeHelp (QString(), "kate-plugins");
}
void KateMainWindow::aboutEditor()
......
......@@ -37,7 +37,7 @@
#include <KShortcut>
#include <KTextEditor/Document>
#include <KTextEditor/View>
#include <KToolInvocation>
#include <khelpclient.h>
#include <KMessageBox>
#include <KMessageWidget>
......@@ -200,12 +200,12 @@ void EditSnippet::save()
void EditSnippet::slotSnippetDocumentation()
{
//FIXME KF5 KToolInvocation::invokeHelp("kate-application-plugin-snippets", "kate");
KHelpClient::invokeHelp("kate-application-plugin-snippets", "kate");
}
void EditSnippet::slotScriptDocumentation()
{
//FIXME KF5 KToolInvocation::invokeHelp("dev-scripting-api", "kate");
KHelpClient::invokeHelp("dev-scripting-api", "kate");
}
void EditSnippet::reject()
......
......@@ -21,7 +21,7 @@
#include "katehelpbutton.h"
#include <kiconloader.h>
#include <ktoolinvocation.h>
#include <khelpclient.h>
#include <klocale.h>
#include <klocalizedstring.h>
......@@ -54,7 +54,7 @@ void KateHelpButton::setIconState(IconState state)
void KateHelpButton::invokeHelp()
{
// KF5 FIXME KToolInvocation::invokeHelp(m_section, "kate");
KHelpClient::invokeHelp(m_section, "kate");
}
void KateHelpButton::setSection(const QString& section)
......
......@@ -55,7 +55,7 @@
#include <kmenu.h>
#include <kiconloader.h>
#include <kconfiggroup.h>
#include "ktoolinvocation.h"
#include <khelpclient.h>
#include <QtAlgorithms>
#include <QVariant>
......@@ -831,10 +831,9 @@ KateCommandLineBar::KateCommandLineBar (KateView *view, QWidget *parent)
setFocusProxy (m_lineEdit);
}
void KateCommandLineBar::showHelpPage() {
#if 0 //FIXME KF5
KToolInvocation::invokeHelp("advanced-editing-tools-commandline","kate");
#endif
void KateCommandLineBar::showHelpPage()
{
KHelpClient::invokeHelp("advanced-editing-tools-commandline", "kate");
}
KateCommandLineBar::~KateCommandLineBar()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment