Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/sublime/aggregatemodel.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | 85 | | |||
86 | QVariant AggregateModel::headerData(int section, Qt::Orientation orientation, int role) const | 86 | QVariant AggregateModel::headerData(int section, Qt::Orientation orientation, int role) const | ||
87 | { | 87 | { | ||
88 | Q_UNUSED(section); | 88 | Q_UNUSED(section); | ||
89 | Q_UNUSED(orientation); | 89 | Q_UNUSED(orientation); | ||
90 | Q_UNUSED(role); | 90 | Q_UNUSED(role); | ||
91 | //there's nothing to return here because aggregated models will have different headers | 91 | //there's nothing to return here because aggregated models will have different headers | ||
92 | //so we just use empty headers for aggregate model. | 92 | //so we just use empty headers for aggregate model. | ||
93 | return ""; | 93 | return QString(); | ||
94 | } | 94 | } | ||
95 | 95 | | |||
96 | int AggregateModel::columnCount(const QModelIndex &parent) const | 96 | int AggregateModel::columnCount(const QModelIndex &parent) const | ||
97 | { | 97 | { | ||
98 | Q_UNUSED(parent); | 98 | Q_UNUSED(parent); | ||
99 | //only 1 column is supported atm | 99 | //only 1 column is supported atm | ||
100 | return 1; | 100 | return 1; | ||
101 | } | 101 | } | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |