diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-02-17 15:58:50 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-02-17 16:14:05 (GMT) |
commit | a0110546f7ba8e9d9ec903e2ac13a85b3af93901 (patch) | |
tree | 1187f2f550ab74abf631c276aa2abcb2be33d9c3 /tools/designer/src | |
parent | bcb4e290959da6e1790551f67de00ba78ac2f791 (diff) | |
download | Qt-a0110546f7ba8e9d9ec903e2ac13a85b3af93901.zip Qt-a0110546f7ba8e9d9ec903e2ac13a85b3af93901.tar.gz Qt-a0110546f7ba8e9d9ec903e2ac13a85b3af93901.tar.bz2 |
Fix compilation with IBM xlC 7:
"../../../../../include/QtCore/../../src/corelib/kernel/qmetatype.h", line 202.49: 1540-0062 (S) The incomplete class "QMetaTypeId<qdesigner_internal::ArrowKeyOperation>" must not be used as a qualifier.
So move the Q_DECLARE_METATYPE before the use.
Reviewed-By: hjk <qtc-committer@nokia.com>
Diffstat (limited to 'tools/designer/src')
-rw-r--r-- | tools/designer/src/components/formeditor/formwindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/designer/src/components/formeditor/formwindow.cpp b/tools/designer/src/components/formeditor/formwindow.cpp index 631ca7c..15775f6 100644 --- a/tools/designer/src/components/formeditor/formwindow.cpp +++ b/tools/designer/src/components/formeditor/formwindow.cpp @@ -1436,6 +1436,14 @@ struct ArrowKeyOperation { int arrowKey; }; +} // namespace + +QT_END_NAMESPACE +Q_DECLARE_METATYPE(qdesigner_internal::ArrowKeyOperation) +QT_BEGIN_NAMESPACE + +namespace qdesigner_internal { + QRect ArrowKeyOperation::apply(const QRect &rect) const { QRect r = rect; @@ -2964,4 +2972,3 @@ QUndoStack *FormWindow::commandHistory() const QT_END_NAMESPACE -Q_DECLARE_METATYPE(qdesigner_internal::ArrowKeyOperation) |