diff options
author | ck <qt-info@nokia.com> | 2010-02-16 15:11:58 +0100 |
---|---|---|
committer | ck <qt-info@nokia.com> | 2010-02-16 15:11:58 +0100 |
commit | 684e86adea5e89d6220560e82f1823f99920bb40 (patch) | |
tree | 2bd899b6b94368220aaac577ff1df380ab36224c /tools/designer | |
parent | f36b0cb1ecdfd0cda6537bdd3acf47eb216db49f (diff) | |
download | qt4-tools-684e86adea5e89d6220560e82f1823f99920bb40.tar.gz |
Designer: Fix compile for namespaced qt.
Diffstat (limited to 'tools/designer')
4 files changed, 8 insertions, 8 deletions
diff --git a/tools/designer/src/components/formeditor/formwindow.cpp b/tools/designer/src/components/formeditor/formwindow.cpp index ccb1984070..631ca7c58b 100644 --- a/tools/designer/src/components/formeditor/formwindow.cpp +++ b/tools/designer/src/components/formeditor/formwindow.cpp @@ -1459,12 +1459,6 @@ QDebug operator<<(QDebug in, const ArrowKeyOperation &op) return in; } -} // namespace qdesigner_internal - -Q_DECLARE_METATYPE(qdesigner_internal::ArrowKeyOperation) - -namespace qdesigner_internal { - // ArrowKeyPropertyHelper: Applies a struct ArrowKeyOperation // (stored as new value) to a list of widgets using to calculate the // changed geometry of the widget in setValue(). Thus, the 'newValue' @@ -2969,3 +2963,5 @@ QUndoStack *FormWindow::commandHistory() const } // namespace QT_END_NAMESPACE + +Q_DECLARE_METATYPE(qdesigner_internal::ArrowKeyOperation) diff --git a/tools/designer/src/components/formeditor/formwindow.h b/tools/designer/src/components/formeditor/formwindow.h index 06f60b5762..dc0026f3a1 100644 --- a/tools/designer/src/components/formeditor/formwindow.h +++ b/tools/designer/src/components/formeditor/formwindow.h @@ -76,7 +76,6 @@ class FormWindowWidgetStack; class FormWindowManager; class FormWindowDnDItem; class SetPropertyCommand; -class QDesignerUndoStack; class QT_FORMEDITOR_EXPORT FormWindow: public FormWindowBase { diff --git a/tools/designer/src/components/formeditor/qdesignerundostack.cpp b/tools/designer/src/components/formeditor/qdesignerundostack.cpp index 6996bcda65..007031d2c6 100644 --- a/tools/designer/src/components/formeditor/qdesignerundostack.cpp +++ b/tools/designer/src/components/formeditor/qdesignerundostack.cpp @@ -44,6 +44,8 @@ #include <QtGui/QUndoStack> #include <QtGui/QUndoCommand> +QT_BEGIN_NAMESPACE + namespace qdesigner_internal { QDesignerUndoStack::QDesignerUndoStack(QObject *parent) : @@ -106,3 +108,5 @@ void QDesignerUndoStack::setDirty(bool v) } } // namespace qdesigner_internal + +QT_END_NAMESPACE diff --git a/tools/designer/src/components/formeditor/qdesignerundostack.h b/tools/designer/src/components/formeditor/qdesignerundostack.h index b1b3389cf0..5451ad83f8 100644 --- a/tools/designer/src/components/formeditor/qdesignerundostack.h +++ b/tools/designer/src/components/formeditor/qdesignerundostack.h @@ -47,7 +47,6 @@ QT_BEGIN_NAMESPACE class QUndoStack; class QUndoCommand; -QT_END_NAMESPACE namespace qdesigner_internal { @@ -86,4 +85,6 @@ private: } // namespace qdesigner_internal +QT_END_NAMESPACE + #endif // QDESIGNERUNDOSTACK_H |