compile fixes
authorLars Knoll <lars.knoll@nokia.com>
Thu, 5 May 2011 12:19:52 +0000 (14:19 +0200)
committerLars Knoll <lars.knoll@nokia.com>
Thu, 5 May 2011 12:19:52 +0000 (14:19 +0200)
src/gui/text/qtextdocument.cpp
src/plugins/platforms/minimal/minimal.pro

index 910a439..ee88ab0 100644 (file)
@@ -58,7 +58,6 @@
 #include <qfile.h>
 #include <qfileinfo.h>
 #include <qdir.h>
-#include "qtextcontrol_p.h"
 #include "qfont_p.h"
 #include "private/qtextedit_p.h"
 #include "private/qdataurl_p.h"
@@ -1970,6 +1969,8 @@ QVariant QTextDocument::loadResource(int type, const QUrl &name)
     if (doc) {
         r = doc->loadResource(type, name);
     }
+#if 0
+    // ### Qt5: reenable
 #ifndef QT_NO_TEXTEDIT
     else if (QTextEdit *edit = qobject_cast<QTextEdit *>(parent())) {
         QUrl resolvedName = edit->d_func()->resolveUrl(name);
@@ -1981,6 +1982,7 @@ QVariant QTextDocument::loadResource(int type, const QUrl &name)
         r = control->loadResource(type, name);
     }
 #endif
+#endif
 
     // handle data: URLs
     if (r.isNull() && name.scheme().compare(QLatin1String("data"), Qt::CaseInsensitive) == 0)
index c832938..2afd0ad 100644 (file)
@@ -1,5 +1,6 @@
 TARGET = qminimal
 include(../../qpluginbase.pri)
+QT += gui-private
 
 DESTDIR = $$QT.gui.plugins/platforms