From 319908623e47b4e73f9af4aa4369cb895bd8df8f Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 9 Mar 2025 00:15:18 +0530 Subject: Fix command input ui to fix to top --- include/CommandInput.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/CommandInput.hpp') 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 #include -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; -- cgit v1.3.1