summaryrefslogtreecommitdiffstats
path: root/tools/designer
diff options
context:
space:
mode:
authorAntonio Aloisio <antonio.aloisio@gmail.com>2009-07-15 10:49:54 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-07-15 10:49:54 (GMT)
commit4ce8c7af12cf9349beb692304808934f6de9cb83 (patch)
tree914303bab84d305276a063848df7b9a101821c3f /tools/designer
parentb9898720b51d24a6f14ecaabc08b4e44d619a7de (diff)
downloadQt-4ce8c7af12cf9349beb692304808934f6de9cb83.zip
Qt-4ce8c7af12cf9349beb692304808934f6de9cb83.tar.gz
Qt-4ce8c7af12cf9349beb692304808934f6de9cb83.tar.bz2
Designer fails to compile if Qt is compiled without size grip support
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'tools/designer')
-rw-r--r--tools/designer/src/lib/shared/widgetfactory.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/designer/src/lib/shared/widgetfactory.cpp b/tools/designer/src/lib/shared/widgetfactory.cpp
index 6fabe18..37c7677 100644
--- a/tools/designer/src/lib/shared/widgetfactory.cpp
+++ b/tools/designer/src/lib/shared/widgetfactory.cpp
@@ -838,9 +838,11 @@ bool WidgetFactory::isPassiveInteractor(QWidget *widget)
if (isTabBarInteractor(tabBar))
m_lastWasAPassiveInteractor = true;
return m_lastWasAPassiveInteractor;
- } else if (qobject_cast<QSizeGrip*>(widget))
+#ifndef QT_NO_SIZEGRIP
+ } else if (qobject_cast<QSizeGrip*>(widget)) {
return (m_lastWasAPassiveInteractor = true);
- else if (qobject_cast<QMdiSubWindow*>(widget))
+#endif
+ } else if (qobject_cast<QMdiSubWindow*>(widget))
return (m_lastWasAPassiveInteractor = true);
else if (qobject_cast<QAbstractButton*>(widget) && (qobject_cast<QTabBar*>(widget->parent()) || qobject_cast<QToolBox*>(widget->parent())))
return (m_lastWasAPassiveInteractor = true);