mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kdeui: use KToolInvocation::startServiceForUrl() instead of spawning kde-open process in KWidgetJobTracker
kde-open does exactly the same - it calls KToolInvocation::startServiceForUrl() with the URL as argument Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d06988eeaf
commit
1d0d3598c7
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,6 @@
|
|||
#include "kwidgetjobtracker.h"
|
||||
#include "kwidgetjobtracker_p.h"
|
||||
|
||||
#include <QProcess>
|
||||
#include <QTimer>
|
||||
#include <QLabel>
|
||||
#include <QProgressBar>
|
||||
|
@ -43,6 +42,7 @@
|
|||
#include <klocale.h>
|
||||
#include <kwindowsystem.h>
|
||||
#include <kseparator.h>
|
||||
#include <ktoolinvocation.h>
|
||||
|
||||
void KWidgetJobTracker::Private::_k_showProgressWidget()
|
||||
{
|
||||
|
@ -627,14 +627,14 @@ void KWidgetJobTracker::Private::ProgressWidget::_k_keepOpenToggled(bool keepOpe
|
|||
|
||||
void KWidgetJobTracker::Private::ProgressWidget::_k_openFile()
|
||||
{
|
||||
QProcess::startDetached("kde-open", QStringList() << location.prettyUrl());
|
||||
KToolInvocation::self()->startServiceForUrl(location.url());
|
||||
}
|
||||
|
||||
void KWidgetJobTracker::Private::ProgressWidget::_k_openLocation()
|
||||
{
|
||||
KUrl dirLocation(location);
|
||||
dirLocation.setFileName(QString());
|
||||
QProcess::startDetached("kde-open", QStringList() << dirLocation.prettyUrl());
|
||||
KToolInvocation::self()->startServiceForUrl(dirLocation.url());
|
||||
}
|
||||
|
||||
void KWidgetJobTracker::Private::ProgressWidget::_k_pauseResumeClicked()
|
||||
|
|
Loading…
Add table
Reference in a new issue