Re: KToolInvokation
On Sunday 01 December 2013 18:42:58 Dominik Haumann wrote: Hi Aleix, KToolInvocation::invokeHelp() was removed. We used it like this: KToolInvocation::invokeHelp(advanced-editing-tools-commandline,kate); According to https://git.reviewboard.kde.org/r/111298/, is the preferred replacement to go with something along this lines: QUrl u(help://kate/advanced-editing-tools-commandline); // ??? QString helpcenter = QStandardPaths::findExecutable(khelpcenter); if (! helpcenter.isEmpty()) QProcess::startDetached(helpcenter, QStringList(u.toString())); } Unfortunately, the porting docs about KDE 4 - KF5 are basically non-existent. That makes it rather hard to find a correct solution... Clearly something wrong regarding the documentation. The intent was to go through QDesktopServices using a help:/ based URL (so you wouldn't need to do the khelpcenter dance by hand). If the doc is not up to date it should be fixed of course. IIRC Aleix worked on that task, so seek if help in case of need. Regards. -- Kévin Ottens, http://ervin.ipsquad.net KDAB - proud supporter of KDE, http://www.kdab.com signature.asc Description: This is a digitally signed message part. ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
Re: KToolInvokation
On Sunday 01 December 2013 18:42:58 Dominik Haumann wrote: Hi Aleix, KToolInvocation::invokeHelp() was removed. We used it like this: KToolInvocation::invokeHelp(advanced-editing-tools-commandline,kate); According to https://git.reviewboard.kde.org/r/111298/, is the preferred replacement to go with something along this lines: QUrl u(help://kate/advanced-editing-tools-commandline); // ??? QString helpcenter = QStandardPaths::findExecutable(khelpcenter); if (! helpcenter.isEmpty()) QProcess::startDetached(helpcenter, QStringList(u.toString())); } Unfortunately, the porting docs about KDE 4 - KF5 are basically non-existent. That makes it rather hard to find a correct solution... But that one is in there: KToolInvocation::invokeHelp is now KHelpClient::invokeHelp, in the kwidgets framework. (see KDE5PORTING.html in toplevel kdelibs.git) and it works, I ported one case of KToolInvocation::invokeHelp() last week Cheers Martin signature.asc Description: This is a digitally signed message part. ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
Re: KToolInvokation
On Sunday 01 December 2013 19:26:22 Martin Graesslin wrote: On Sunday 01 December 2013 18:42:58 Dominik Haumann wrote: Hi Aleix, KToolInvocation::invokeHelp() was removed. We used it like this: KToolInvocation::invokeHelp(advanced-editing-tools-commandline,kate) ; According to https://git.reviewboard.kde.org/r/111298/, is the preferred replacement to go with something along this lines: QUrl u(help://kate/advanced-editing-tools-commandline); // ??? QString helpcenter = QStandardPaths::findExecutable(khelpcenter); if (! helpcenter.isEmpty()) QProcess::startDetached(helpcenter, QStringList(u.toString())); } Unfortunately, the porting docs about KDE 4 - KF5 are basically non-existent. That makes it rather hard to find a correct solution... But that one is in there: KToolInvocation::invokeHelp is now KHelpClient::invokeHelp, in the kwidgets framework. (see KDE5PORTING.html in toplevel kdelibs.git) and it works, I ported one case of KToolInvocation::invokeHelp() last week Indeed, there you got me ;) But thanks a lot for the hint. More questions will probably come ;) Greetings, Dominik ___ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel