cutter/src/widgets/Omnibar.h

32 lines
491 B
C
Raw Normal View History

#ifndef OMNIBAR_H
#define OMNIBAR_H
#include <QLineEdit>
class MainWindow;
class Omnibar : public QLineEdit
{
Q_OBJECT
public:
explicit Omnibar(MainWindow *main, QWidget *parent = nullptr);
void refresh(const QStringList &flagList);
private slots:
2017-04-09 19:55:06 +00:00
void on_gotoEntry_returnPressed();
2017-04-09 19:55:06 +00:00
void restoreCompleter();
public slots:
2017-04-27 23:48:21 +00:00
void clear();
private:
void setupCompleter();
MainWindow *main;
QStringList flags;
};
#endif // OMNIBAR_H