CutterSearchable¶
-
class CutterSearchable¶
Interface for any widget that needs a search bar.
Subclassed by SearchableDockWidget
Public Functions
-
virtual ~CutterSearchable() = default¶
-
virtual QWidget *searchableArea() const = 0¶
Widget which the search bar will be shown relative to.
-
virtual int searchHPadding() const = 0¶
Padding from the right.
-
virtual int searchVPadding() const = 0¶
Padding from the top.
-
virtual void searchChanged(const QString &text, int options) = 0¶
Called when the user types in the search bar or changes search options Text has a debounce timer of 200ms.
-
virtual void findNext() = 0¶
-
virtual void findPrev() = 0¶
-
virtual void findLast() = 0¶
-
virtual void searchBarHidden() = 0¶
Called when the search bar is closed.
-
virtual void searchBarShown() = 0¶
Called when the search bar is shown.
-
virtual ~CutterSearchable() = default¶