mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
Improved status message filtering
* avoid re-init of widget if already initialized * allow icons instead of text for severity radio buttons * changing severity filter directly triggers new filtering * use icon for new button * init this->showFilterBar() as default (otherwise not functional) * widths for filter bar buttons
This commit is contained in:
committed by
Mathew Sutcliffe
parent
3575eed37b
commit
6825524025
@@ -136,6 +136,8 @@ namespace BlackGui
|
||||
|
||||
void CViewBaseNonTemplate::setFilterWidgetImpl(QWidget *filterWidget)
|
||||
{
|
||||
if (filterWidget == this->m_filterWidget) { return; }
|
||||
|
||||
// dialog or filter widget
|
||||
if (this->m_filterWidget)
|
||||
{
|
||||
@@ -154,6 +156,7 @@ namespace BlackGui
|
||||
|
||||
void CViewBaseNonTemplate::setFilterDialog(CFilterDialog *filterDialog)
|
||||
{
|
||||
if (filterDialog == this->m_filterWidget) { return; }
|
||||
this->setFilterWidgetImpl(filterDialog);
|
||||
if (filterDialog)
|
||||
{
|
||||
@@ -165,6 +168,7 @@ namespace BlackGui
|
||||
|
||||
void CViewBaseNonTemplate::setFilterWidget(CFilterWidget *filterWidget)
|
||||
{
|
||||
if (filterWidget == this->m_filterWidget) { return; }
|
||||
this->setFilterWidgetImpl(filterWidget);
|
||||
if (filterWidget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user