From d090deecf74e4bad670f9bf4ac9e013e69e27c80 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 17 Feb 2010 16:58:50 +0100 Subject: Fix compilation with IBM xlC 7: "../../../../../include/QtCore/../../src/corelib/kernel/qmetatype.h", line 202.49: 1540-0062 (S) The incomplete class "QMetaTypeId" must not be used as a qualifier. So move the Q_DECLARE_METATYPE before the use. Reviewed-By: hjk --- tools/designer/src/components/formeditor/formwindow.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/designer/src/components/formeditor/formwindow.cpp b/tools/designer/src/components/formeditor/formwindow.cpp index 2ac4b81..84b61ae 100644 --- a/tools/designer/src/components/formeditor/formwindow.cpp +++ b/tools/designer/src/components/formeditor/formwindow.cpp @@ -1439,6 +1439,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; @@ -1462,12 +1470,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' -- cgit v0.12