Disable icons in the models for now.

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

No files matched your search

+2 -3
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));
}