cutter/src/widgets/omnibar.h
ballessay a9b5f40702 Initialize OmniBar again
+ cleanup of the OmniBar class
2017-04-27 21:16:09 +02:00

33 lines
526 B
C++

#ifndef OMNIBAR_H
#define OMNIBAR_H
#include <QLineEdit>
class MainWindow;
class Omnibar : public QLineEdit
{
Q_OBJECT
public:
explicit Omnibar(MainWindow *main, QWidget *parent = 0);
void refresh(const QStringList &flagList);
private slots:
void on_gotoEntry_returnPressed();
void restoreCompleter();
public slots:
void showCommands();
private:
void setupCompleter();
MainWindow *main;
const QStringList commands;
QStringList flags;
};
#endif // OMNIBAR_H