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

Function IconMode

plugins/projectmanagerview/projectmodelitemdelegate.cpp:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28{}
29
30static QIcon::Mode IconMode( QStyle::State state )
31{
32 if (!(state & QStyle::State_Enabled)) {
33 return QIcon::Disabled;
34 } else if (state & QStyle::State_Selected) {
35 return QIcon::Selected;
36 } else {
37 return QIcon::Normal;
38 }
39}
40
41static QIcon::State IconState(QStyle::State state)
42{

Callers 1

paintMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected