forked from qt-creator/qt-creator
Designer: Remove compatibility code for Qt < 5.0
Change-Id: I3ebe69b2c56635d1978da994fc772536a2839304 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -34,11 +34,7 @@
|
||||
#include <QStringList>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
#if QT_VERSION >= 0x050000
|
||||
class QDesignerFormWindowInterface;
|
||||
#else
|
||||
namespace qdesigner_internal { class FormWindowBase; }
|
||||
#endif
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace ProjectExplorer {
|
||||
@@ -63,11 +59,7 @@ class ResourceHandler : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
#if QT_VERSION >= 0x050000
|
||||
explicit ResourceHandler(QDesignerFormWindowInterface *fw);
|
||||
#else
|
||||
explicit ResourceHandler(qdesigner_internal::FormWindowBase *fw);
|
||||
#endif
|
||||
explicit ResourceHandler(QDesignerFormWindowInterface *fw);
|
||||
virtual ~ResourceHandler();
|
||||
|
||||
public slots:
|
||||
@@ -75,11 +67,7 @@ public slots:
|
||||
|
||||
private:
|
||||
void ensureInitialized();
|
||||
#if QT_VERSION >= 0x050000
|
||||
QDesignerFormWindowInterface * const m_form;
|
||||
#else
|
||||
qdesigner_internal::FormWindowBase * const m_form;
|
||||
#endif
|
||||
QStringList m_originalUiQrcPaths;
|
||||
ProjectExplorer::SessionNode *m_sessionNode;
|
||||
ProjectExplorer::NodesWatcher *m_sessionWatcher;
|
||||
|
||||
Reference in New Issue
Block a user