From 4c762b2516bc664293c2aec072074f1e34dda8c3 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 18 Mar 2025 21:19:28 +0530 Subject: Remove all the ui bits because screw it, lets unix a bit more --- include/completion/CommandsModel.hpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 include/completion/CommandsModel.hpp (limited to 'include/completion/CommandsModel.hpp') 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 -#include -#include - -struct Command { - QString name; - QString description; -}; - -// TODO: Combine commands model completion and commands evaluation -const QList 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 roleNames() const override; - QVariant data(const QModelIndex &index, - int role = Qt::DisplayRole) const override; - -private: - QList items; -}; -- cgit v1.3.1