port from KStandardDirs to QStandardPaths

REVIEW: 120498
This commit is contained in:
Michal Humpula
2014-10-05 12:04:29 +02:00
parent cc85a5243c
commit 15d09f9161
11 changed files with 41 additions and 46 deletions

View File

@@ -30,7 +30,6 @@
#include <KActionCollection>
#include <KCmdLineArgs>
#include <KDebug>
#include <KStandardDirs>
// Konsole
#include "SessionManager.h"
@@ -415,7 +414,7 @@ Profile::Ptr Application::processProfileChangeArgs(KCmdLineArgs* args, Profile::
// Note: KCmdLineArgs::count() return the number of arguments
// that aren't options.
if (args->count() == 0 && KStandardDirs::findExe(commandExec).isEmpty()) {
if (args->count() == 0 && QStandardPaths::findExecutable(commandExec).isEmpty()) {
// Example: konsole -e "man ls"
ShellCommand shellCommand(args->getOption("e"));
commandExec = shellCommand.command();