mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-17 19:54:33 -05:00
Disable icons in the models for now.
This commit is contained in:
parent
ef52e98ee6
commit
19063d9894
@ -72,9 +72,9 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
|
||||
if (role == Qt::DisplayRole) {
|
||||
return entry->title();
|
||||
}
|
||||
else if (role == Qt::DecorationRole) {
|
||||
/*else if (role == Qt::DecorationRole) {
|
||||
return entry->icon();
|
||||
}
|
||||
}*/
|
||||
else {
|
||||
return QVariant();
|
||||
}
|
||||
@ -115,6 +115,5 @@ void EntryModel::entryRemoved()
|
||||
void EntryModel::entryDataChanged(Entry* entry)
|
||||
{
|
||||
int row = m_group->entries().indexOf(entry);
|
||||
qDebug("%d", index(row, 0).row());
|
||||
Q_EMIT dataChanged(index(row, 0), index(row, columnCount()-1));
|
||||
}
|
||||
|
@ -108,9 +108,10 @@ QVariant GroupModel::data(const QModelIndex& index, int role) const
|
||||
if (role == Qt::DisplayRole) {
|
||||
return group->name();
|
||||
}
|
||||
else if (role == Qt::DecorationRole) {
|
||||
// TODO enable
|
||||
/*else if (role == Qt::DecorationRole) {
|
||||
return group->icon();
|
||||
}
|
||||
}*/
|
||||
else {
|
||||
return QVariant();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user