mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Removing QWidget dependency from src/core.
This commit is contained in:
parent
6f5bbf7ad1
commit
004f2b6801
46 changed files with 298 additions and 313 deletions
|
@ -19,8 +19,12 @@
|
|||
|
||||
#include <QMimeData>
|
||||
|
||||
#include "core/Database.h"
|
||||
#include "core/Group.h"
|
||||
#include "core/Metadata.h"
|
||||
#include "core/Tools.h"
|
||||
#include "gui/DatabaseIcons.h"
|
||||
#include "gui/Icons.h"
|
||||
#include "keeshare/KeeShare.h"
|
||||
|
||||
GroupModel::GroupModel(Database* db, QObject* parent)
|
||||
|
@ -126,7 +130,7 @@ QVariant GroupModel::data(const QModelIndex& index, int role) const
|
|||
#endif
|
||||
return nameTemplate.arg(group->name());
|
||||
} else if (role == Qt::DecorationRole) {
|
||||
return group->iconPixmap();
|
||||
return Icons::groupIconPixmap(group);
|
||||
} else if (role == Qt::FontRole) {
|
||||
QFont font;
|
||||
if (group->isExpired()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue