diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-09 00:15:18 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-09 00:15:18 +0530 |
| commit | 319908623e47b4e73f9af4aa4369cb895bd8df8f (patch) | |
| tree | 86d40d633bf86b5bc70876c1044ac0e030524e96 /include/CommandInput.hpp | |
| parent | 6d3ee55638164df6521a60b6392a26f855d5f924 (diff) | |
| download | null-browser-319908623e47b4e73f9af4aa4369cb895bd8df8f.tar.gz null-browser-319908623e47b4e73f9af4aa4369cb895bd8df8f.zip | |
Fix command input ui to fix to top
Diffstat (limited to '')
| -rw-r--r-- | include/CommandInput.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/CommandInput.hpp b/include/CommandInput.hpp index 5cebcd1..a6ca0ed 100644 --- a/include/CommandInput.hpp +++ b/include/CommandInput.hpp @@ -4,7 +4,7 @@ #include <QKeyEvent> #include <QLineEdit> -class CommandInput : public QFrame { +class CommandInput : public QWidget { Q_OBJECT public: @@ -12,12 +12,15 @@ public: 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; |
