◆ WidgetBoxCategoryEntryDelegate()
qdesigner_internal::WidgetBoxCategoryEntryDelegate::WidgetBoxCategoryEntryDelegate |
( |
QWidget * |
parent = 0 | ) |
|
|
inlineexplicit |
◆ createEditor()
QWidget * qdesigner_internal::WidgetBoxCategoryEntryDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
Definition at line 392 of file widgetboxcategorylistview.cpp.
396 QWidget* result = QItemDelegate::createEditor(parent, option, index);
397 if (QLineEdit* line_edit = qobject_cast<QLineEdit*>(result)) {
398 QRegExp re = QRegExp(
"[_a-zA-Z][_a-zA-Z0-9]*");
400 line_edit->setValidator(
new QRegExpValidator(re, line_edit));
#define ASSERT(condition)
References ASSERT.
The documentation for this class was generated from the following file: