Thin strip between toolbar and canvas showing one chip per active filter.
More...
#include <widgets/filterbarwidget.h>
Thin strip between toolbar and canvas showing one chip per active filter.
Hidden when no filters are active. Each chip carries a label and a × button. Clicking × removes the chip and emits chipCloseRequested() so MainWindow can pop the corresponding snapshot. "Clear all" emits clearAllRequested() and lets MainWindow drain the stack before calling clearAllChips().
Menu-driven restores (Restore All Nodes / Restore All Edges) must call removeLatestChipForScope() / removeAllChipsForScope() so the bar stays in sync.
◆ FilterBarWidget()
| FilterBarWidget::FilterBarWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ addChip()
◆ chipCloseRequested
Emitted after the chip has already been removed from the bar.
◆ clearAllChips
| void FilterBarWidget::clearAllChips |
( |
| ) |
|
|
slot |
◆ clearAllRequested
| void FilterBarWidget::clearAllRequested |
( |
| ) |
|
|
signal |
Emitted when the user clicks "Clear all".
◆ removeAllChipsForScope()
◆ removeChip()
| void FilterBarWidget::removeChip |
( |
QFrame * |
chip | ) |
|
|
private |
◆ removeLatestChipForScope()
◆ updateCloseButtons()
| void FilterBarWidget::updateCloseButtons |
( |
| ) |
|
|
private |
◆ updateVisibility()
| void FilterBarWidget::updateVisibility |
( |
| ) |
|
|
private |
◆ m_chips
| QList<ChipData> FilterBarWidget::m_chips |
|
private |
◆ m_chipsLayout
| QHBoxLayout* FilterBarWidget::m_chipsLayout |
|
private |
◆ m_clearAllBtn
| QPushButton* FilterBarWidget::m_clearAllBtn |
|
private |
The documentation for this class was generated from the following files: