Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
formbuilder.cpp File Reference

(8615f39fb5c15ebace99f7f0e3745d68f27ed6f4)

#include "formbuilder.h"
#include "formbuilderextra_p.h"
#include "ui4_p.h"
#include <QtUiPlugin/customwidget.h>
#include <QtWidgets/QtWidgets>
#include "widgets.table"
+ Include dependency graph for formbuilder.cpp:

Go to the source code of this file.

Macros

#define DECLARE_LAYOUT(L, C)
 
#define DECLARE_COMPAT_WIDGET(W, C)
 
#define DECLARE_WIDGET(W, C)
 
#define DECLARE_WIDGET_1(W, C)
 
#define DECLARE_WIDGET(W, C)
 
#define DECLARE_COMPAT_WIDGET(W, C)
 
#define DECLARE_LAYOUT(L, C)
 
#define DECLARE_WIDGET_1(a, b)
 

Functions

static QObjectobjectByName (QWidget *topLevel, const QString &name)
 
static void insertPlugins (QObject *o, QMap< QString, QDesignerCustomWidgetInterface * > *customWidgets)
 

Macro Definition Documentation

◆ DECLARE_COMPAT_WIDGET [1/2]

#define DECLARE_COMPAT_WIDGET ( W,
C )

◆ DECLARE_COMPAT_WIDGET [2/2]

#define DECLARE_COMPAT_WIDGET ( W,
C )

◆ DECLARE_LAYOUT [1/2]

#define DECLARE_LAYOUT ( L,
C )

◆ DECLARE_LAYOUT [2/2]

#define DECLARE_LAYOUT ( L,
C )
Value:
if (layoutName == QLatin1StringView(#L)) { \
Q_ASSERT(l == 0); \
l = parentLayout \
? new L() \
: new L(parentWidget); \
}

◆ DECLARE_WIDGET [1/2]

#define DECLARE_WIDGET ( W,
C )
Value:
else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(parentWidget); }
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
GLfloat GLfloat GLfloat w
[0]
#define Q_ASSERT(cond)
Definition qrandom.cpp:47

◆ DECLARE_WIDGET [2/2]

#define DECLARE_WIDGET ( W,
C )

◆ DECLARE_WIDGET_1 [1/2]

#define DECLARE_WIDGET_1 ( a,
b )
Value:
DECLARE_WIDGET(a,b)

◆ DECLARE_WIDGET_1 [2/2]

#define DECLARE_WIDGET_1 ( W,
C )
Value:
else if (!qstrcmp(widgetNameC, #W)) { Q_ASSERT(w == 0); w = new W(0, parentWidget); }

Function Documentation

◆ insertPlugins()

static void insertPlugins ( QObject * o,
QMap< QString, QDesignerCustomWidgetInterface * > * customWidgets )
static

Definition at line 400 of file formbuilder.cpp.

◆ objectByName()

static QObject * objectByName ( QWidget * topLevel,
const QString & name )
static

Definition at line 269 of file formbuilder.cpp.