mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kinfocenter: use KToolInvocation::invokeHelp() instead of attempting to start khelpcenter
khelpcenter is no longer maintained Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5dea205ad7
commit
b048083425
3 changed files with 5 additions and 11 deletions
|
@ -234,11 +234,7 @@ void KInfoCenter::resetCondition()
|
|||
|
||||
void KInfoCenter::helpClickedSlot()
|
||||
{
|
||||
// Nicked from Ben, could not use KToolInvocation due to docpath.
|
||||
QString docPath = m_contain->helpPath();
|
||||
|
||||
KUrl url( KUrl("help:/"), docPath );
|
||||
QProcess::startDetached("khelpcenter", QStringList() << url.url());
|
||||
KToolInvocation::invokeHelp(QString(), m_contain->serviceName());
|
||||
}
|
||||
|
||||
void KInfoCenter::exportClickedSlot()
|
||||
|
|
|
@ -117,10 +117,10 @@ void KcmContainer::setKcmTitle(const KCModuleInfo &info)
|
|||
m_titleLabel->setText(i18n("%1 ( %2 )",kcmTitle,kcmComment));
|
||||
}
|
||||
|
||||
QString KcmContainer::helpPath() const
|
||||
QString KcmContainer::serviceName() const
|
||||
{
|
||||
if(m_mod == NULL) return QString();
|
||||
return m_modInfo.docPath();
|
||||
return m_modInfo.fileName().replace(QLatin1String(".desktop"), QString());
|
||||
}
|
||||
|
||||
KCModule::Buttons KcmContainer::buttons() const
|
||||
|
|
|
@ -65,11 +65,9 @@ class KcmContainer : public QScrollArea
|
|||
void setKcmTopEdge(int y);
|
||||
|
||||
/**
|
||||
* Get currently selected KCMs document path
|
||||
* for .desktop
|
||||
* X-KDE-DocPath
|
||||
* Get currently selected KCMs service name
|
||||
*/
|
||||
QString helpPath() const;
|
||||
QString serviceName() const;
|
||||
|
||||
/**
|
||||
* Get currently selected KCMs
|
||||
|
|
Loading…
Add table
Reference in a new issue