|
static bool | findWidget (const QDesignerWidgetBoxInterface *wbox, const QString &className, const QString &category, Widget *widgetData) |
|
static DomUI * | xmlToUi (const QString &name, const QString &xml, bool insertFakeTopLevel) |
|
static DomUI * | xmlToUi (const QString &name, const QString &xml, bool insertFakeTopLevel, QString *errorMessage) |
|
|
void | handleMousePress (const QString &name, const QString &xml, const QPoint &global_mouse_pos) |
|
Definition at line 61 of file widgetbox.h.
◆ LoadMode
◆ WidgetBox()
qdesigner_internal::WidgetBox::WidgetBox |
( |
SampleDesignerInterface * |
core, |
|
|
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
flags = {} |
|
) |
| |
|
explicit |
Definition at line 110 of file widgetbox.cpp.
113 QVBoxLayout* l =
new QVBoxLayout(
this);
118 QToolBar* toolBar =
new QToolBar(
this);
119 QLineEdit* filterWidget =
new WidgetBoxFilterLineEdit(toolBar);
120 filterWidget->setPlaceholderText(
"Filter");
121 filterWidget->setClearButtonEnabled(
true);
122 connect(filterWidget, SIGNAL(textChanged(QString)),
m_view, SLOT(filter(QString)));
123 toolBar->addWidget(filterWidget);
124 l->addWidget(toolBar);
127 connect(
m_view, SIGNAL(pressed(QString, QString, QPoint)),
this,
131 setAcceptDrops(
true);
References handleMousePress(), and m_view.
◆ ~WidgetBox()
qdesigner_internal::WidgetBox::~WidgetBox |
( |
| ) |
|
|
virtualdefault |
◆ addCategory()
void qdesigner_internal::WidgetBox::addCategory |
( |
const Category & |
cat | ) |
|
|
virtual |
◆ addWidget()
void qdesigner_internal::WidgetBox::addWidget |
( |
int |
cat_idx, |
|
|
const Widget & |
wgt |
|
) |
| |
|
virtual |
◆ category()
QDesignerWidgetBoxInterface::Category qdesigner_internal::WidgetBox::category |
( |
int |
cat_idx | ) |
const |
|
virtual |
◆ categoryCount()
int qdesigner_internal::WidgetBox::categoryCount |
( |
| ) |
const |
|
virtual |
◆ core()
◆ dragEnterEvent()
void qdesigner_internal::WidgetBox::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
void qdesigner_internal::WidgetBox::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropEvent()
void qdesigner_internal::WidgetBox::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropWidgets()
void qdesigner_internal::WidgetBox::dropWidgets |
( |
const QList< QDesignerDnDItemInterface * > & |
item_list, |
|
|
const QPoint & |
global_mouse_pos |
|
) |
| |
◆ fileName()
QString qdesigner_internal::WidgetBox::fileName |
( |
| ) |
const |
|
virtual |
◆ findWidget()
static bool qdesigner_internal::QDesignerWidgetBox::findWidget |
( |
const QDesignerWidgetBoxInterface * |
wbox, |
|
|
const QString & |
className, |
|
|
const QString & |
category, |
|
|
Widget * |
widgetData |
|
) |
| |
|
staticinherited |
◆ handleMousePress
void qdesigner_internal::WidgetBox::handleMousePress |
( |
const QString & |
name, |
|
|
const QString & |
xml, |
|
|
const QPoint & |
global_mouse_pos |
|
) |
| |
|
privateslot |
◆ iconForWidget()
QIcon qdesigner_internal::WidgetBox::iconForWidget |
( |
const QString & |
className, |
|
|
const QString & |
category = "" |
|
) |
| const |
|
virtual |
◆ load()
bool qdesigner_internal::WidgetBox::load |
( |
| ) |
|
|
virtual |
◆ loadContents()
bool qdesigner_internal::WidgetBox::loadContents |
( |
const QString & |
contents | ) |
|
|
virtual |
◆ loadMode()
LoadMode qdesigner_internal::QDesignerWidgetBox::loadMode |
( |
| ) |
const |
|
inherited |
◆ removeCategory()
void qdesigner_internal::WidgetBox::removeCategory |
( |
int |
cat_idx | ) |
|
|
virtual |
◆ removeWidget()
void qdesigner_internal::WidgetBox::removeWidget |
( |
int |
cat_idx, |
|
|
int |
wgt_idx |
|
) |
| |
|
virtual |
◆ save()
bool qdesigner_internal::WidgetBox::save |
( |
| ) |
|
|
virtual |
◆ setFileName()
void qdesigner_internal::WidgetBox::setFileName |
( |
const QString & |
file_name | ) |
|
|
virtual |
◆ setLoadMode()
void qdesigner_internal::QDesignerWidgetBox::setLoadMode |
( |
LoadMode |
lm | ) |
|
|
inherited |
◆ widget()
QDesignerWidgetBoxInterface::Widget qdesigner_internal::WidgetBox::widget |
( |
int |
cat_idx, |
|
|
int |
wgt_idx |
|
) |
| const |
|
virtual |
◆ widgetCount()
int qdesigner_internal::WidgetBox::widgetCount |
( |
int |
cat_idx | ) |
const |
|
virtual |
◆ xmlToUi() [1/2]
static DomUI* qdesigner_internal::QDesignerWidgetBox::xmlToUi |
( |
const QString & |
name, |
|
|
const QString & |
xml, |
|
|
bool |
insertFakeTopLevel |
|
) |
| |
|
staticinherited |
◆ xmlToUi() [2/2]
static DomUI* qdesigner_internal::QDesignerWidgetBox::xmlToUi |
( |
const QString & |
name, |
|
|
const QString & |
xml, |
|
|
bool |
insertFakeTopLevel, |
|
|
QString * |
errorMessage |
|
) |
| |
|
staticinherited |
◆ m_core
◆ m_loadMode
LoadMode qdesigner_internal::QDesignerWidgetBox::m_loadMode |
|
privateinherited |
◆ m_view
Definition at line 106 of file widgetbox.h.
Referenced by WidgetBox(), addCategory(), addWidget(), category(), categoryCount(), dropWidgets(), fileName(), iconForWidget(), load(), loadContents(), removeCategory(), removeWidget(), save(), setFileName(), widget(), and widgetCount().
The documentation for this class was generated from the following files: