17 #ifndef GEPETTO_GUI_ACTION_SEARCH_BAR_HH 18 #define GEPETTO_GUI_ACTION_SEARCH_BAR_HH 23 #include <QStringListModel> 42 virtual void showEvent ( QShowEvent* event );
45 bool trigger(
const QString& s);
46 void handleReturnPressed();
49 QStringListModel* model_;
50 QCompleter* completer_;
51 QMap<QString, QAction*> actions_;
57 #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:38
virtual void keyPressEvent(QKeyEvent *event)
void addAction(QAction *action)