aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-03-08 20:28:10 +0530
committerAkshay Nair <phenax5@gmail.com>2025-03-08 20:29:03 +0530
commit6d3ee55638164df6521a60b6392a26f855d5f924 (patch)
tree18448793cbb971e76cbaeb7b9d2159ee2ab5d3b6 /include
parentb7ac4dc7a20c624a343c946c5decd1b84eab2b82 (diff)
downloadnull-browser-6d3ee55638164df6521a60b6392a26f855d5f924.tar.gz
null-browser-6d3ee55638164df6521a60b6392a26f855d5f924.zip
Add test setup + spec for command input
Diffstat (limited to '')
-rw-r--r--include/CommandInput.hpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/CommandInput.hpp b/include/CommandInput.hpp
index e6dc53d..5cebcd1 100644
--- a/include/CommandInput.hpp
+++ b/include/CommandInput.hpp
@@ -1,17 +1,8 @@
#pragma once
-#include <QApplication>
-#include <QDialog>
+#include <QBoxLayout>
#include <QKeyEvent>
-#include <QLabel>
#include <QLineEdit>
-#include <QObject>
-#include <QVBoxLayout>
-#include <QWebEnginePage>
-#include <QWebEngineView>
-#include <QWidget>
-#include <QWindow>
-#include <lua.hpp>
class CommandInput : public QFrame {
Q_OBJECT
@@ -20,6 +11,7 @@ public:
CommandInput(QString defaultInput = "", QWidget *parentNode = nullptr);
void setInputFocus(bool focussed);
bool isInputFocussed();
+ QString getInputCommand();
signals:
void submitted(QString command);