Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouib <code@louib.net>2021-03-13 22:07:49 +0300
committerJonathan White <support@dmapps.us>2021-11-12 15:41:30 +0300
commit004f2b6801d93116277778611920793b7dbe0afb (patch)
treeab328622af017c0e5735ffd0588480321bbed07d /src/autotype
parent6f5bbf7ad1048abc3db7e378df654a61954f77e3 (diff)
Removing QWidget dependency from src/core.
Diffstat (limited to 'src/autotype')
-rw-r--r--src/autotype/AutoTypeMatchModel.cpp8
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;