MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / headerData

Method headerData

App/Client/Recent/RecentModel.cpp:48–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48QVariant CRecentModel::headerData(int section, Qt::Orientation orientation, int role) const
49{
50 if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
51 switch (section) {
52 case Name: return tr("Name");
53 case Protocol: return tr("Protocol");
54 case Type: return tr("Type");
55 case Time: return tr("Time");
56 case ID: return tr("ID");
57 case File: return tr("File");
58 }
59 }
60
61 return QVariant();
62}
63
64int CRecentModel::rowCount(const QModelIndex &parent) const
65{

Callers 1

paintSectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected