Exemplo n.º 1
0
ModuleBrowser::ModuleBrowser(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::ModuleBrowser)
{
    ui->setupUi(this);

    connect(filterEdit(), SIGNAL(textChanged(QString)), SLOT(setFilter(QString)));
    ui->moduleListWidget->setFocusProxy(filterEdit());
}
void FilterExpressionToolBar::editFilter()
{
    if ( ! sender() )
        return;

    QString label = ((QAction *)sender())->property(dfe_property_label_).toString();
    QString expr = ((QAction *)sender())->property(dfe_property_expression_).toString();

    int idx = uatRowIndexForFilter(label, expr);

    if ( idx > -1 )
        emit filterEdit(idx);
}