Save search category
This commit is contained in:
committed by
craig.p.drummond
parent
11d11e549a
commit
482bc95ad0
@@ -707,7 +707,7 @@ QString ItemView::searchText() const
|
||||
|
||||
QString ItemView::searchCategory() const
|
||||
{
|
||||
return searchWidget->isVisible() ? searchWidget->category() : QString();
|
||||
return searchWidget->category();
|
||||
}
|
||||
|
||||
void ItemView::clearSearchText()
|
||||
@@ -952,6 +952,11 @@ void ItemView::setSearchCategories(const QList<QPair<QString, QString> > &catego
|
||||
searchWidget->setCategories(categories);
|
||||
}
|
||||
|
||||
void ItemView::setSearchCategory(const QString &id)
|
||||
{
|
||||
searchWidget->setCategory(id);
|
||||
}
|
||||
|
||||
void ItemView::showSpinner(bool v)
|
||||
{
|
||||
if (v) {
|
||||
|
||||
Reference in New Issue
Block a user