From 12d0ce37db7323e8efd56d6a698a98abcb8d680b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 11 Mar 2025 11:31:14 +0530 Subject: Add command+url adapter and switching --- include/widgets/CommandInput.hpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 include/widgets/CommandInput.hpp (limited to 'include/widgets/CommandInput.hpp') diff --git a/include/widgets/CommandInput.hpp b/include/widgets/CommandInput.hpp deleted file mode 100644 index 3ce9500..0000000 --- a/include/widgets/CommandInput.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include -#include -#include -#include - -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; -}; -- cgit v1.3.1