MCPcopy Create free account
hub / github.com/KDAB/GammaRay / data

Method data

plugins/translatorinspector/translatorwrapperproxy.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26TranslatorWrapperProxy::~TranslatorWrapperProxy() = default;
27
28QVariant TranslatorWrapperProxy::data(const QModelIndex &proxyIndex, int role) const
29{
30 if (hasIndex(proxyIndex.row(), proxyIndex.column(), proxyIndex.parent())) {
31 if (role == Qt::FontRole) {
32 const bool overridden = proxyIndex.sibling(proxyIndex.row(), 3)
33 .data(TranslationsModel::IsOverriddenRole)
34 .toBool();
35 QFont font;
36 font.setItalic(overridden);
37 return font;
38 }
39 }
40
41 return QIdentityProxyModel::data(proxyIndex, role);
42}
43
44QVariant TranslatorWrapperProxy::headerData(int section, Qt::Orientation orientation, int role) const
45{

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
columnMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected