mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove redundant DECLARE_COMPAT_WIDGET() macro definition
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
a2dcf2c39f
commit
58cf02db3a
3 changed files with 0 additions and 9 deletions
|
@ -262,12 +262,10 @@ WidgetDataBase::WidgetDataBase(QDesignerFormEditorInterface *core, QObject *pare
|
|||
m_core(core)
|
||||
{
|
||||
#define DECLARE_LAYOUT(L, C)
|
||||
#define DECLARE_COMPAT_WIDGET(W, C) DECLARE_WIDGET(W, C)
|
||||
#define DECLARE_WIDGET(W, C) append(new WidgetDataBaseItem(QString::fromUtf8(#W)));
|
||||
|
||||
#include "widgets.table"
|
||||
|
||||
#undef DECLARE_COMPAT_WIDGET
|
||||
#undef DECLARE_LAYOUT
|
||||
#undef DECLARE_WIDGET
|
||||
#undef DECLARE_WIDGET_1
|
||||
|
|
|
@ -366,13 +366,11 @@ QWidget *WidgetFactory::createWidget(const QString &widgetName, QWidget *parentW
|
|||
}
|
||||
|
||||
#define DECLARE_LAYOUT(L, C)
|
||||
#define DECLARE_COMPAT_WIDGET(W, C) /*DECLARE_WIDGET(W, C)*/
|
||||
#define DECLARE_WIDGET(W, C) else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(parentWidget); }
|
||||
#define DECLARE_WIDGET_1(W, C) else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(0, parentWidget); }
|
||||
|
||||
#include "widgets.table"
|
||||
|
||||
#undef DECLARE_COMPAT_WIDGET
|
||||
#undef DECLARE_LAYOUT
|
||||
#undef DECLARE_WIDGET
|
||||
#undef DECLARE_WIDGET_1
|
||||
|
|
|
@ -199,13 +199,11 @@ QWidget *QFormBuilder::createWidget(const QString &widgetName, QWidget *parentWi
|
|||
}
|
||||
|
||||
#define DECLARE_LAYOUT(L, C)
|
||||
#define DECLARE_COMPAT_WIDGET(W, C)
|
||||
#define DECLARE_WIDGET(W, C) else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(parentWidget); }
|
||||
#define DECLARE_WIDGET_1(W, C) else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(0, parentWidget); }
|
||||
|
||||
#include "widgets.table"
|
||||
|
||||
#undef DECLARE_COMPAT_WIDGET
|
||||
#undef DECLARE_LAYOUT
|
||||
#undef DECLARE_WIDGET
|
||||
#undef DECLARE_WIDGET_1
|
||||
|
@ -254,8 +252,6 @@ QLayout *QFormBuilder::createLayout(const QString &layoutName, QObject *parent,
|
|||
Q_ASSERT(parentWidget || parentLayout);
|
||||
|
||||
#define DECLARE_WIDGET(W, C)
|
||||
#define DECLARE_COMPAT_WIDGET(W, C)
|
||||
|
||||
#define DECLARE_LAYOUT(L, C) \
|
||||
if (layoutName == QLatin1String(#L)) { \
|
||||
Q_ASSERT(l == 0); \
|
||||
|
@ -267,7 +263,6 @@ QLayout *QFormBuilder::createLayout(const QString &layoutName, QObject *parent,
|
|||
#include "widgets.table"
|
||||
|
||||
#undef DECLARE_LAYOUT
|
||||
#undef DECLARE_COMPAT_WIDGET
|
||||
#undef DECLARE_WIDGET
|
||||
|
||||
if (l) {
|
||||
|
|
Loading…
Add table
Reference in a new issue