MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / headerData

Method headerData

src/core/user_scripts/UserScriptModel.cpp:76–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76QVariant UserScriptModel::headerData(int section, Qt::Orientation orientation, int role) const
77{
78 if (orientation != Qt::Horizontal)
79 return QVariant();
80
81 if (role == Qt::DisplayRole)
82 {
83 switch (section)
84 {
85 case 0: return QString("On");
86 case 1: return QString("Name");
87 case 2: return QString("Description");
88 case 3: return QString("Version");
89 default: return QVariant();
90 }
91 }
92
93 return QVariant();
94}
95
96int UserScriptModel::rowCount(const QModelIndex &/*parent*/) const
97{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected