mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
bebc2ec36d
* Replace 0 and Q_NULLPTR with nullptr * Use c++11 foreach
32 lines
491 B
C++
32 lines
491 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 = nullptr);
|
|
|
|
void refresh(const QStringList &flagList);
|
|
|
|
private slots:
|
|
void on_gotoEntry_returnPressed();
|
|
|
|
void restoreCompleter();
|
|
|
|
public slots:
|
|
void clear();
|
|
|
|
private:
|
|
void setupCompleter();
|
|
|
|
MainWindow *main;
|
|
QStringList flags;
|
|
};
|
|
|
|
#endif // OMNIBAR_H
|