diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-18 21:19:28 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-18 21:19:47 +0530 |
| commit | 4c762b2516bc664293c2aec072074f1e34dda8c3 (patch) | |
| tree | ebe441f7af8c1f4c49f04630538312d55f18f63b /include/completion/CommandsModel.hpp | |
| parent | 056b0b16947ac19a0c425aa9d2ff8f589378d3bc (diff) | |
| download | null-browser-4c762b2516bc664293c2aec072074f1e34dda8c3.tar.gz null-browser-4c762b2516bc664293c2aec072074f1e34dda8c3.zip | |
Remove all the ui bits because screw it, lets unix a bit more
Diffstat (limited to '')
| -rw-r--r-- | include/completion/CommandsModel.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/completion/CommandsModel.hpp b/include/completion/CommandsModel.hpp deleted file mode 100644 index 4f64654..0000000 --- a/include/completion/CommandsModel.hpp +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once - -#include <QAbstractListModel> -#include <QWidget> -#include <QtCore> - -struct Command { - QString name; - QString description; -}; - -// TODO: Combine commands model completion and commands evaluation -const QList<Command> commands = { - {.name = "open", .description = "Update current URL"}, - {.name = "tabs", .description = "Select a tab"}, - {.name = "tabopen", .description = "Open a url in a new tab"}, - {.name = "tabnext", .description = "Go to next tab"}, - {.name = "tabprev", .description = "Go to previous tab"}, -}; - -class CommandsModel : public QAbstractListModel { - Q_OBJECT - -public: - CommandsModel(QObject *parent = nullptr); - int rowCount(const QModelIndex &parent = QModelIndex()) const override; - int columnCount(const QModelIndex &parent = QModelIndex()) const override; - QHash<int, QByteArray> roleNames() const override; - QVariant data(const QModelIndex &index, - int role = Qt::DisplayRole) const override; - -private: - QList<Command> items; -}; |
