Commit acf83062 authored by Jonathan Marten's avatar Jonathan Marten
Browse files

Need to use a QApplication after all

Commit 752651a5 changed to use a QGuiApplication, but the HTML
thumbnailer (provided by Konqueror) still needs QWidget-based
web page rendering classes.
parent ec972526
......@@ -32,12 +32,12 @@
#include <unistd.h> // nice()
#endif
#include <QApplication>
#include <QBuffer>
#include <QFile>
#include <QSaveFile>
#include <QBitmap>
#include <QCryptographicHash>
#include <QGuiApplication>
#include <QImage>
#include <QIcon>
#include <QPainter>
......@@ -111,9 +111,9 @@ extern "C" Q_DECL_EXPORT int kdemain( int argc, char **argv )
// need QGuiApplication
putenv(strdup("SESSION_MANAGER="));
// some thumbnail plugins reuse QWidget-tainted code for the rendering,
// Some thumbnail plugins use QWidget classes for the rendering,
// so use QApplication here, not just QGuiApplication
QGuiApplication app(argc, argv);
QApplication app(argc, argv);
if (argc != 4) {
qCritical() << "Usage: kio_thumbnail protocol domain-socket1 domain-socket2";
......
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