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) { if (role == Qt::DisplayRole) {
return entry->title(); return entry->title();
} }
else if (role == Qt::DecorationRole) { /*else if (role == Qt::DecorationRole) {
return entry->icon(); return entry->icon();
} }*/
else { else {
return QVariant(); return QVariant();
} }
@ -115,6 +115,5 @@ void EntryModel::entryRemoved()
void EntryModel::entryDataChanged(Entry* entry) void EntryModel::entryDataChanged(Entry* entry)
{ {
int row = m_group->entries().indexOf(entry); int row = m_group->entries().indexOf(entry);
qDebug("%d", index(row, 0).row());
Q_EMIT dataChanged(index(row, 0), index(row, columnCount()-1)); 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) { if (role == Qt::DisplayRole) {
return group->name(); return group->name();
} }
else if (role == Qt::DecorationRole) { // TODO enable
/*else if (role == Qt::DecorationRole) {
return group->icon(); return group->icon();
} }*/
else { else {
return QVariant(); return QVariant();
} }