diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-15 19:17:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-15 20:08:30 +0530 |
| commit | 387cf24e389854ecc97f6236fdd6acbc2486dd52 (patch) | |
| tree | a51b51de0064fb10685d2da85d11748c4a32ce73 /include/completion/CompleterDelegate.hpp | |
| parent | 05ae8976a8e1ab5411058de244c4e2fcc87ec369 (diff) | |
| download | null-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.tar.gz null-browser-387cf24e389854ecc97f6236fdd6acbc2486dd52.zip | |
Replaced QCompleter with custom implementation
Diffstat (limited to 'include/completion/CompleterDelegate.hpp')
| -rw-r--r-- | include/completion/CompleterDelegate.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/completion/CompleterDelegate.hpp b/include/completion/CompleterDelegate.hpp index fc7a321..8de22de 100644 --- a/include/completion/CompleterDelegate.hpp +++ b/include/completion/CompleterDelegate.hpp @@ -2,7 +2,9 @@ #include <QStyledItemDelegate> #include <QWidget> +#include <QtCore/qabstractitemmodel.h> #include <QtCore> +#include <cstdint> class CompleterDelegate : public QStyledItemDelegate { Q_OBJECT @@ -12,4 +14,9 @@ public: void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; + void setCurrentRow(uint32_t); + uint32_t currentRow(); + +private: + uint32_t row; }; |
