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";