compile fixes

This commit is contained in:
Lars Knoll 2011-05-05 14:19:52 +02:00
parent 2bcd79e213
commit 73a99f3897
2 changed files with 4 additions and 1 deletions

View 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);
@ -1980,6 +1981,7 @@ QVariant QTextDocument::loadResource(int type, const QUrl &name)
else if (QTextControl *control = qobject_cast<QTextControl *>(parent())) {
r = control->loadResource(type, name);
}
#endif
#endif
// handle data: URLs

View File

@ -1,5 +1,6 @@
TARGET = qminimal
include(../../qpluginbase.pri)
QT += gui-private
DESTDIR = $$QT.gui.plugins/platforms