17 #ifndef GEPETTO_GUI_ACTION_SEARCH_BAR_HH 18 #define GEPETTO_GUI_ACTION_SEARCH_BAR_HH 23 #include <QStringListModel> 40 virtual void showEvent(QShowEvent* event);
43 bool trigger(
const QString& s);
44 void handleReturnPressed();
47 QStringListModel* model_;
48 QCompleter* completer_;
49 QMap<QString, QAction*> actions_;
55 #endif // GEPETTO_GUI_ACTION_SEARCH_BAR_HH virtual void showEvent(QShowEvent *event)
Definition: action-search-bar.hh:28
Definition: action-search-bar.hh:26
ActionSearchBar(QWidget *parent)
QAction * showAction() const
Definition: action-search-bar.hh:36
virtual void keyPressEvent(QKeyEvent *event)
void addAction(QAction *action)