From 19063d98948816fdcb67a139ef45fcffe550937e Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 24 Aug 2010 23:17:09 +0200 Subject: [PATCH] Disable icons in the models for now. --- src/gui/EntryModel.cpp | 5 ++--- src/gui/GroupModel.cpp | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/EntryModel.cpp b/src/gui/EntryModel.cpp index f99ff7423..c7009cc91 100644 --- a/src/gui/EntryModel.cpp +++ b/src/gui/EntryModel.cpp @@ -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)); } diff --git a/src/gui/GroupModel.cpp b/src/gui/GroupModel.cpp index 7b135c29f..8398a7f32 100644 --- a/src/gui/GroupModel.cpp +++ b/src/gui/GroupModel.cpp @@ -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(); }