Skip to content
Snippets Groups Projects
Commit 1483c9c0 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

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

RevBy: Eike
Details: Remove leftover defines/includes
parent 6fa1084b
No related branches found
No related tags found
No related merge requests found
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 += \ ...@@ -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
......
...@@ -42,18 +42,10 @@ ...@@ -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; ...@@ -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: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment