Commit c50c3d53 authored by Laurent Montel's avatar Laurent Montel 😁

kdelibs4support--

parent 8fad6ebe
......@@ -12,7 +12,7 @@
#include <qprintdialog.h>
#include <qwidget.h>
#include <kglobal.h>
#include <ktabwidget.h>
#include <qtabwidget.h>
#include "../shell/okular_main.h"
#include "../shell/shell.h"
......
......@@ -15,7 +15,6 @@
#include <KConfigDialog>
#include <KGlobal>
#include <KStandardDirs>
#include <KTempDir>
#include <KAboutData>
#include <QTreeView>
......
......@@ -9,7 +9,7 @@
#include "testingutils.h"
#include "core/annotations.h"
#include <qtest_kde.h>
#include <qtest.h>
namespace TestingUtils
{
......
......@@ -24,8 +24,6 @@
#include <KProcess>
#include <KShell>
#include <kstandarddirs.h>
#include <ktempdir.h>
#include <QtCore/QDebug>
#include <kdeversion.h>
#include <QStandardPaths>
......@@ -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";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment