Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2010-08-25 01:17:09 +0400
committerFelix Geyer <debfx@fobos.de>2010-08-25 01:17:09 +0400
commit19063d98948816fdcb67a139ef45fcffe550937e (patch)
tree7593b77e265ddfd6d9c0381b44bf6d64c5622d39 /src
parentef52e98ee65bb2c07a47f717487240ab9fb5b15a (diff)
Disable icons in the models for now.
Diffstat (limited to 'src')
-rw-r--r--src/gui/EntryModel.cpp5
-rw-r--r--src/gui/GroupModel.cpp5
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();
}