0
0
mirror of https://github.com/keepassxreboot/keepassxc.git synced 2024-09-20 04:12:15 +02:00

Disable icons in the models for now.

This commit is contained in:
Felix Geyer 2010-08-24 23:17:09 +02:00
parent ef52e98ee6
commit 19063d9894
2 changed files with 5 additions and 5 deletions

View File

@ -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));
}

View File

@ -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();
}