17 #ifndef GEPETTO_GUI_ACTION_SEARCH_BAR_HH 18 #define GEPETTO_GUI_ACTION_SEARCH_BAR_HH 25 #include <QStringListModel> 41 virtual void showEvent(QShowEvent* event);
44 bool trigger(
const QString& s);
45 void handleReturnPressed();
48 QStringListModel* model_;
49 QCompleter* completer_;
50 QMap<QString, QAction*> actions_;
56 #endif // GEPETTO_GUI_ACTION_SEARCH_BAR_HH virtual void showEvent(QShowEvent *event)
Definition: action-search-bar.hh:29
Definition: action-search-bar.hh:27
ActionSearchBar(QWidget *parent)
QAction * showAction() const
Definition: action-search-bar.hh:37
virtual void keyPressEvent(QKeyEvent *event)
void addAction(QAction *action)