

Definition at line 59 of file actioneditor.cpp.
Public Member Functions | |
| ActionFilterWidget (ActionEditor *actionEditor, QToolBar *parent) | |
Private Slots | |
| void | checkButton (QString text) |
Private Attributes | |
| QPushButton * | m_button |
| QLineEdit * | m_editor |
| ActionEditor * | m_actionEditor |
| qdesigner_internal::ActionFilterWidget::ActionFilterWidget | ( | ActionEditor * | actionEditor, | |
| QToolBar * | parent | |||
| ) | [inline] |
Definition at line 63 of file actioneditor.cpp.
References Qt::AlignRight, Qt::AlignVCenter, clear(), qdesigner_internal::createIconSet(), QSizePolicy::Expanding, l, QSizePolicy::Minimum, QLabel::setAlignment(), SIGNAL, and SLOT.
00064 : QWidget(parent), 00065 m_actionEditor(actionEditor) 00066 { 00067 QHBoxLayout *l = new QHBoxLayout(this); 00068 l->setMargin(0); 00069 l->setSpacing(0); 00070 00071 l->addItem(new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum)); 00072 00073 QLabel *label = new QLabel(tr("Filter: "), this); 00074 label->setAlignment(Qt::AlignRight | Qt::AlignVCenter); 00075 l->addWidget(label); 00076 00077 m_editor = new QLineEdit(this); 00078 l->addWidget(m_editor); 00079 00080 connect(m_editor, SIGNAL(textChanged(QString)), actionEditor, SLOT(setFilter(QString))); 00081 m_button = new QPushButton(this); 00082 m_button->setIcon(createIconSet(QLatin1String("resetproperty.png"))); 00083 m_button->setIconSize(QSize(16, 16)); 00084 m_button->setFlat(true); 00085 l->addWidget(m_button); 00086 connect(m_button, SIGNAL(clicked()), m_editor, SLOT(clear())); 00087 connect(m_editor, SIGNAL(textChanged(QString)), this, SLOT(checkButton(QString))); 00088 }
Here is the call graph for this function:

| void qdesigner_internal::ActionFilterWidget::checkButton | ( | QString | text | ) | [inline, private, slot] |
Definition at line 91 of file actioneditor.cpp.
References QString::isEmpty().
00092 { 00093 m_button->setEnabled(!text.isEmpty()); 00094 }
Definition at line 97 of file actioneditor.cpp.
Definition at line 98 of file actioneditor.cpp.
Definition at line 99 of file actioneditor.cpp.
1.5.1