MCPcopy Create free account
hub / github.com/KDE/kdevelop / headerData

Method headerData

kdevplatform/shell/settings/environmentprofilemodel.cpp:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82QVariant EnvironmentProfileModel::headerData(int section, Qt::Orientation orientation, int role) const
83{
84 if (section < 0 || section >= columnCount(QModelIndex()) ||
85 orientation != Qt::Horizontal ||
86 role != Qt::DisplayRole) {
87 return {};
88 }
89
90 if (section == VariableColumn) {
91 return i18nc("@title:column", "Variable");
92 }
93 return i18nc("@title:column", "Value");
94}
95
96bool EnvironmentProfileModel::setData(const QModelIndex& index, const QVariant& data, int role)
97{

Callers

nothing calls this directly

Calls 1

QModelIndexClass · 0.70

Tested by

no test coverage detected