diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-11 11:31:14 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-11 11:44:31 +0530 |
| commit | 12d0ce37db7323e8efd56d6a698a98abcb8d680b (patch) | |
| tree | ec2102d40326a332b2ecb976869585f81cba8574 /include/widgets/CommandInput.hpp | |
| parent | 971854bfefad4c644ac3d5f5d6003f24d551bf1d (diff) | |
| download | null-browser-12d0ce37db7323e8efd56d6a698a98abcb8d680b.tar.gz null-browser-12d0ce37db7323e8efd56d6a698a98abcb8d680b.zip | |
Add command+url adapter and switching
Diffstat (limited to 'include/widgets/CommandInput.hpp')
| -rw-r--r-- | include/widgets/CommandInput.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
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 <QBoxLayout> -#include <QLineEdit> -#include <QWidget> -#include <QtCore> - -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; -}; |
