BUG: need to invalidate filtering when using Qt 4.3+.
This commit is contained in:
parent
23bdb30e10
commit
b31b420b65
@ -144,6 +144,11 @@ QModelIndex QCMakeCacheView::moveCursor(CursorAction act,
|
|||||||
|
|
||||||
void QCMakeCacheView::setShowAdvanced(bool s)
|
void QCMakeCacheView::setShowAdvanced(bool s)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= 040300
|
||||||
|
// new 4.3 api that needs to be called. what about an older Qt?
|
||||||
|
this->SearchFilter->invalidate();
|
||||||
|
#endif
|
||||||
|
|
||||||
this->AdvancedFilter->setFilterRegExp(
|
this->AdvancedFilter->setFilterRegExp(
|
||||||
s ? AdvancedRegExp[1] : AdvancedRegExp[0]);
|
s ? AdvancedRegExp[1] : AdvancedRegExp[0]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user