forked from qt-creator/qt-creator
TextEditor: Hide filter button in outline sidebar
...if there are no filter menu actions since a disabled button looks (almost?) the same as an enabled button, thus looks broken if the user tries to click on it. Change-Id: Idabc25d0f2b5534b77cc6c67cb160306345a586e Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -138,7 +138,7 @@ void OutlineWidgetStack::updateFilterMenu()
|
|||||||
m_filterMenu->addAction(filterAction);
|
m_filterMenu->addAction(filterAction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_filterButton->setEnabled(!m_filterMenu->actions().isEmpty());
|
m_filterButton->setVisible(!m_filterMenu->actions().isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor)
|
void OutlineWidgetStack::updateCurrentEditor(Core::IEditor *editor)
|
||||||
|
Reference in New Issue
Block a user