From c50c3d5332bdeab9ce4d53dddefdfd5963e6ad9a Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 6 Mar 2015 14:00:25 +0100 Subject: [PATCH] kdelibs4support-- --- autotests/mainshelltest.cpp | 2 +- autotests/parttest.cpp | 1 - autotests/testingutils.cpp | 2 +- core/fileprinter.cpp | 6 ++---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/autotests/mainshelltest.cpp b/autotests/mainshelltest.cpp index f0569e064..475bf23a5 100644 --- a/autotests/mainshelltest.cpp +++ b/autotests/mainshelltest.cpp @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include "../shell/okular_main.h" #include "../shell/shell.h" diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp index dd64a1c23..1dd23d411 100644 --- a/autotests/parttest.cpp +++ b/autotests/parttest.cpp @@ -15,7 +15,6 @@ #include #include #include -#include #include #include diff --git a/autotests/testingutils.cpp b/autotests/testingutils.cpp index 336edf277..49ab04b31 100644 --- a/autotests/testingutils.cpp +++ b/autotests/testingutils.cpp @@ -9,7 +9,7 @@ #include "testingutils.h" #include "core/annotations.h" -#include +#include namespace TestingUtils { diff --git a/core/fileprinter.cpp b/core/fileprinter.cpp index e17f37e97..930c5eb37 100644 --- a/core/fileprinter.cpp +++ b/core/fileprinter.cpp @@ -24,8 +24,6 @@ #include #include -#include -#include #include #include #include @@ -121,9 +119,9 @@ int FilePrinter::doPrintFiles( QPrinter &printer, QStringList fileList, FileDele //Some distros name the CUPS version of lpr as lpr-cups or lpr.cups so try those first //before default to lpr, or failing that to lp - if ( !KStandardDirs::findExe("lpr-cups").isEmpty() ) { + if ( !QStandardPaths::findExecutable("lpr-cups").isEmpty() ) { exe = "lpr-cups"; - } else if ( !KStandardDirs::findExe("lpr.cups").isEmpty() ) { + } else if ( !QStandardPaths::findExecutable("lpr.cups").isEmpty() ) { exe = "lpr.cups"; } else if ( !QStandardPaths::findExecutable("lpr").isEmpty() ) { exe = "lpr";