Q_ASSERT now always expands the argument
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 30 Oct 2014 05:55:53 +0000 (22:55 -0700)
committerThiago Macieira <thiago.macieira@intel.com>
Sat, 1 Nov 2014 20:52:07 +0000 (21:52 +0100)
We need isDescendant to be defined.

Change-Id: I014c0501d11613c252c3bf2297442e2693708b5e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
src/designer/src/components/formeditor/formwindow.cpp

index 1973497..a0dffd9 100644 (file)
@@ -1255,7 +1255,6 @@ QWidget *FormWindow::createWidget(DomUI *ui, const QRect &rc, QWidget *target)
     return widget;
 }
 
-#if !defined(QT_NO_DEBUG) || defined(QT_FORCE_ASSERTS)
 static bool isDescendant(const QWidget *parent, const QWidget *child)
 {
     for (; child != 0; child = child->parentWidget()) {
@@ -1264,7 +1263,6 @@ static bool isDescendant(const QWidget *parent, const QWidget *child)
     }
     return false;
 }
-#endif
 
 void FormWindow::resizeWidget(QWidget *widget, const QRect &geometry)
 {