diff options
author | louib <code@louib.net> | 2021-03-13 22:07:49 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2021-11-12 15:41:30 +0300 |
commit | 004f2b6801d93116277778611920793b7dbe0afb (patch) | |
tree | ab328622af017c0e5735ffd0588480321bbed07d /src/autotype/AutoTypeMatchModel.cpp | |
parent | 6f5bbf7ad1048abc3db7e378df654a61954f77e3 (diff) |
Removing QWidget dependency from src/core.
Diffstat (limited to 'src/autotype/AutoTypeMatchModel.cpp')
-rw-r--r-- | src/autotype/AutoTypeMatchModel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/autotype/AutoTypeMatchModel.cpp b/src/autotype/AutoTypeMatchModel.cpp index 128015898..207d09b02 100644 --- a/src/autotype/AutoTypeMatchModel.cpp +++ b/src/autotype/AutoTypeMatchModel.cpp @@ -20,8 +20,12 @@ #include <QFont> +#include "core/Entry.h" +#include "core/Global.h" #include "core/Group.h" #include "core/Metadata.h" +#include "gui/DatabaseIcons.h" +#include "gui/Icons.h" AutoTypeMatchModel::AutoTypeMatchModel(QObject* parent) : QAbstractTableModel(parent) @@ -114,11 +118,11 @@ QVariant AutoTypeMatchModel::data(const QModelIndex& index, int role) const switch (index.column()) { case ParentGroup: if (match.first->group()) { - return match.first->group()->iconPixmap(); + return Icons::groupIconPixmap(match.first->group()); } break; case Title: - return match.first->iconPixmap(); + return Icons::entryIconPixmap(match.first); } } else if (role == Qt::FontRole) { QFont font; |