diff options
Diffstat (limited to 'include/CommandInput.hpp')
| -rw-r--r-- | include/CommandInput.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/CommandInput.hpp b/include/CommandInput.hpp deleted file mode 100644 index a6ca0ed..0000000 --- a/include/CommandInput.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include <QBoxLayout> -#include <QKeyEvent> -#include <QLineEdit> - -class CommandInput : public QWidget { - Q_OBJECT - -public: - CommandInput(QString defaultInput = "", QWidget *parentNode = nullptr); - void setInputFocus(bool focussed); - bool isInputFocussed(); - QString getInputCommand(); - void setInputText(QString text); - -signals: - void submitted(QString command); - void cancelled(); - -protected: - void keyPressEvent(QKeyEvent *event) override; - void emitSubmit(); - -private: - QBoxLayout *layout; - QLineEdit *input; -}; |
