aboutsummaryrefslogtreecommitdiff
path: root/include/completion/CommandsModel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/completion/CommandsModel.hpp')
-rw-r--r--include/completion/CommandsModel.hpp34
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;
-};