All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <RegExpRowSelector.h>
Public Member Functions | |
| RegExpRowSelector (QWidget *parent=0) | |
| void | setView (QAbstractItemView *view) |
| ~RegExpRowSelector () | |
Brief description of class still missing.
Full description of class still missing
| QGpGuiTools::RegExpRowSelector::RegExpRowSelector | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References QGpCoreTools::tr(), and TRACE.
: QWidget(parent)
{
TRACE;
QHBoxLayout * hboxLayout=new QHBoxLayout(this);
hboxLayout->setSpacing(6);
hboxLayout->setMargin(0);
_pattern=new QComboBox(this);
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(_pattern->sizePolicy().hasHeightForWidth());
_pattern->setSizePolicy(sizePolicy);
_pattern->setEditable(true);
_pattern->setToolTip(tr("All rows of the above view that contain this regular expression are selected.\n"
"Column joints are translated to TAB ('\\t')."));
connect(_pattern, SIGNAL(editTextChanged(QString)), this, SLOT(patternChanged()));
hboxLayout->addWidget(_pattern);
_button=new QToolButton(this);
_button->setText(tr("Select"));
_button->setEnabled(false);
connect(_button, SIGNAL(clicked()), this, SLOT(select()));
hboxLayout->addWidget(_button);
_view=0;
}
| void QGpGuiTools::RegExpRowSelector::setView | ( | QAbstractItemView * | view | ) |
References QGpGuiTools::Settings::getHistory(), and TRACE.
{
TRACE;
ASSERT(!_view);
_view=view;
_pattern->addItems(Settings::getHistory(_view->objectName()));
}