mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
generic: adjust to KToolInvocation changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
76899364a3
commit
865ddb65a8
7 changed files with 8 additions and 8 deletions
|
@ -241,7 +241,7 @@ void RadialMap::Widget::mousePressEvent(QMouseEvent *e)
|
|||
if (openFileManager && clicked == openFileManager) {
|
||||
KRun::runUrl(url.url(),QLatin1String( "inode/directory" ), this);
|
||||
} else if (openTerminal && clicked == openTerminal) {
|
||||
KToolInvocation::invokeTerminal(QString(),url.path());
|
||||
KToolInvocation::self()->invokeTerminal(QString(), url.path());
|
||||
} else if (centerMap && clicked == centerMap) {
|
||||
goto section_two;
|
||||
} else if (openFile && clicked == openFile) {
|
||||
|
|
|
@ -164,7 +164,7 @@ void KonsoleProfilesWidget::slotProfileClicked()
|
|||
const QStringList konsoleargs = QStringList()
|
||||
<< "--profile" << profilename;
|
||||
QString invocationerror;
|
||||
const int invocationresult = KToolInvocation::kdeinitExec("konsole", konsoleargs, &invocationerror);
|
||||
const int invocationresult = KToolInvocation::self()->kdeinitExec("konsole", konsoleargs, &invocationerror);
|
||||
if (invocationresult != 0) {
|
||||
m_konsoleprofiles->showMessage(KIcon("dialog-error"), invocationerror, Plasma::ButtonOk);
|
||||
}
|
||||
|
|
|
@ -367,7 +367,7 @@ void Timer::slotCountDone()
|
|||
QStringList args = KShell::splitArgs(m_command);
|
||||
QString command = args[0];
|
||||
args.removeFirst();
|
||||
KToolInvocation::kdeinitExec(command, args);
|
||||
KToolInvocation::self()->kdeinitExec(command, args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ void KateSessions::run(const Plasma::QueryMatch &match)
|
|||
if (!session.isEmpty()) {
|
||||
QStringList args;
|
||||
args << QLatin1String("--start") << session << QLatin1String("-n");
|
||||
KToolInvocation::kdeinitExec(QLatin1String("kate"), args);
|
||||
KToolInvocation::self()->kdeinitExec(QLatin1String("kate"), args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ void KonsoleSessions::run(const Plasma::QueryMatch &match)
|
|||
args << QLatin1String( "--profile" );
|
||||
args << session;
|
||||
kDebug() << "=== START: konsole" << args;
|
||||
KToolInvocation::kdeinitExec(QLatin1String("konsole"), args);
|
||||
KToolInvocation::self()->kdeinitExec(QLatin1String("konsole"), args);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3487,7 +3487,7 @@ void Document::processAction( const Action * action )
|
|||
int lilyRow = 0, lilyCol = 0;
|
||||
// if the url is a mailto one, invoke mailer
|
||||
if ( browse->url().startsWith( "mailto:", Qt::CaseInsensitive ) )
|
||||
KToolInvocation::invokeMailer( browse->url() );
|
||||
KToolInvocation::self()->invokeMailer( browse->url() );
|
||||
else if ( extractLilyPondSourceReference( browse->url(), &lilySource, &lilyRow, &lilyCol ) )
|
||||
{
|
||||
const SourceReference ref( lilySource, lilyRow, lilyCol );
|
||||
|
|
|
@ -4378,14 +4378,14 @@ void PageView::slotHandleWebShortcutAction()
|
|||
|
||||
if ( KUriFilter::self()->filterSearchUri( filterData, KUriFilter::WebShortcutFilter ) )
|
||||
{
|
||||
KToolInvocation::invokeBrowser( filterData.uri().url() );
|
||||
KToolInvocation::self()->invokeBrowser( filterData.uri().url() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PageView::slotConfigureWebShortcuts()
|
||||
{
|
||||
KToolInvocation::kdeinitExec( "kcmshell4", QStringList() << "ebrowsing" );
|
||||
KToolInvocation::self()->kdeinitExec( "kcmshell4", QStringList() << "ebrowsing" );
|
||||
}
|
||||
|
||||
void PageView::slotZoom()
|
||||
|
|
Loading…
Add table
Reference in a new issue