Add signal EntryView::entryActivated().

This commit is contained in:
Felix Geyer committed 2010-09-19 19:45:14 +02:00
1 parent 1ee0c804be
commit 24158bb032
4 files changed
+21 -1

No files matched your search

+7 -1
View File
@@ -26,6 +26,12 @@ EntryModel::EntryModel(QObject* parent)
{
}
Entry* EntryModel::entryFromIndex(const QModelIndex& index) const
{
Q_ASSERT(index.isValid() && index.row() < m_group->entries().size());
return m_group->entries().at(index.row());
}
void EntryModel::setGroup(Group* group)
{
beginResetModel();
@@ -66,7 +72,7 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const
return QVariant();
}
Entry* entry = m_group->entries().at(index.row());
Entry* entry = entryFromIndex(index);
// TODO implement other columns
if (role == Qt::DisplayRole) {