Talked to hjk, restore back Q_ASSERTs, since qtcassert.h lies outside of shared dir

This commit is contained in:
Jarek Kobus
2009-01-08 10:46:00 +01:00
parent 7cf9888a1e
commit 1b77e4e99e
9 changed files with 65 additions and 79 deletions

View File

@@ -35,7 +35,7 @@
#include "sizehandlerect.h"
#include "widgethostconstants.h"
#include <utils/qtcassert.h>
#include <QtCore/QDebug>
#include <QtDesigner/QDesignerFormWindowInterface>
@@ -143,7 +143,7 @@ void FormResizer::setFormWindow(QDesignerFormWindowInterface *fw)
if (debugFormResizer)
qDebug() << "FormResizer::setFormWindow " << fw;
QVBoxLayout *layout = qobject_cast<QVBoxLayout *>(m_frame->layout());
QTC_ASSERT(layout, return);
Q_ASSERT(layout);
if (layout->count())
delete layout->takeAt(0);
m_formWindow = fw;