Fixes: Remove dependencies to Qt private headers (shared resource editor)

RevBy: Eike
Details: Remove leftover defines/includes
This commit is contained in:
Friedemann Kleint
2009-02-09 12:04:07 +01:00
parent 6fa1084bc8
commit 1483c9c0f8
2 changed files with 2 additions and 18 deletions

View File

@@ -1,14 +1,7 @@
QT_BUILD_TREE=$$(QT_BUILD_TREE)
isEmpty(QT_BUILD_TREE):QT_BUILD_TREE=$$(QTDIR)
QT_QRC_BUILD_TREE = $$fromfile($$QT_BUILD_TREE/.qmake.cache,QT_SOURCE_TREE)
INCLUDEPATH *= $$QT_QRC_BUILD_TREE/tools/designer/src/lib/shared
INCLUDEPATH *= $$PWD $$PWD/.. INCLUDEPATH *= $$PWD $$PWD/..
QT *= xml QT *= xml
DEFINES *= QT_NO_SHARED_EXPORT
# Input # Input
SOURCES += \ SOURCES += \
$$PWD/resourcefile.cpp \ $$PWD/resourcefile.cpp \
@@ -21,7 +14,6 @@ HEADERS += \
$$PWD/resourceview.h \ $$PWD/resourceview.h \
$$PWD/qrceditor.h \ $$PWD/qrceditor.h \
$$PWD/undocommands_p.h \ $$PWD/undocommands_p.h \
\
$$PWD/../namespace_global.h \ $$PWD/../namespace_global.h \
FORMS += $$PWD/qrceditor.ui FORMS += $$PWD/qrceditor.ui

View File

@@ -42,18 +42,10 @@
#include <QtCore/QStringList> #include <QtCore/QStringList>
#include <QtGui/QIcon> #include <QtGui/QIcon>
#include "shared_global_p.h"
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace qdesigner_internal { namespace qdesigner_internal {
#ifdef BUILD_VSIP
# define RESOURCE_EXPORT
#else
# define RESOURCE_EXPORT QDESIGNER_SHARED_EXPORT
#endif
struct File; struct File;
struct Prefix; struct Prefix;
@@ -125,7 +117,7 @@ typedef QList<Prefix *> PrefixList;
Represents the structure of a Qt Resource File (.qrc) file. Represents the structure of a Qt Resource File (.qrc) file.
*/ */
class RESOURCE_EXPORT ResourceFile class ResourceFile
{ {
public: public:
ResourceFile(const QString &file_name = QString()); ResourceFile(const QString &file_name = QString());
@@ -199,7 +191,7 @@ private:
Wraps a \l ResourceFile as a single-column tree model. Wraps a \l ResourceFile as a single-column tree model.
*/ */
class RESOURCE_EXPORT ResourceModel : public QAbstractItemModel class ResourceModel : public QAbstractItemModel
{ {
Q_OBJECT Q_OBJECT