aboutsummaryrefslogtreecommitdiff
path: root/include/CommandInput.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CommandInput.hpp')
-rw-r--r--include/CommandInput.hpp5
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;