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 × emits chipCloseRequested(barIndex, scope) BEFORE any chip is removed. The receiver (MainWindow) orchestrates graph state restoration, then calls removeChipAt() or rebuilds the bar via clearAllChips() + addChip(). "Clear all" emits clearAllRequested(); MainWindow drains the stack, then calls 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 when the user clicks × on a chip, BEFORE the chip is removed. barIndex is the chip's position (0 = leftmost) at the time of the click. The bar does NOT remove the chip automatically; the receiver must call removeChipAt(), clearAllChips(), or rebuild the bar as appropriate.
◆ chipScopeAt()
◆ 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 |
◆ removeChipAt()
| void FilterBarWidget::removeChipAt |
( |
int | barIndex | ) |
|
◆ 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: