MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / data

Method data

launcher/ui/instanceview/InstanceProxyModel.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32QVariant InstanceProxyModel::data(const QModelIndex & index, int role) const
33{
34 QVariant data = QSortFilterProxyModel::data(index, role);
35 if(role == Qt::DecorationRole)
36 {
37 return QVariant(APPLICATION->icons()->getIcon(data.toString()));
38 }
39 return data;
40}
41
42bool InstanceProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const {
43 const QString leftCategory = left.data(InstanceViewRoles::GroupRole).toString();

Callers 11

updateGeometriesMethod · 0.45
categoryMethod · 0.45
dropEventMethod · 0.45
lessThanMethod · 0.45
stateMethod · 0.45
textMethod · 0.45
positionOfMethod · 0.45
itemsMethod · 0.45
paintMethod · 0.45
sizeHintMethod · 0.45
setEditorDataMethod · 0.45

Calls 4

dataFunction · 0.85
getIconMethod · 0.80
iconsMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected