Added simple search capability to TemplatePicker.

This commit is contained in:
Jim Evins
2013-11-12 22:42:51 -05:00
parent 7f3adc818b
commit 5ce9121801
9 changed files with 132 additions and 6 deletions
+9
View File
@@ -32,6 +32,15 @@ namespace gLabels
QList<libglabels::Template*> tmplates = libglabels::Db::templates();
templatePicker->setTemplates( tmplates );
connect( searchEntry, SIGNAL(textChanged(const QString &)),
this, SLOT(searchEntryTextChanged(const QString &)) );
}
void NewLabelDialog::searchEntryTextChanged( const QString &text )
{
templatePicker->applyFilter( text );
}
}