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

Method updateState

kdevplatform/interfaces/iplugin.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void updateState()
56 {
57 const int projectCount =
58 ICore::self()->projectController()->projectCount();
59
60 IPlugin::ReverseStateChange reverse = IPlugin::StateNoReverse;
61 if (! projectCount)
62 reverse = IPlugin::StateReverse;
63
64 q->stateChanged(QStringLiteral("has_project"), reverse);
65 }
66
67 IPlugin *q;
68 ICore *core;

Callers 1

IPluginMethod · 0.45

Calls 3

projectCountMethod · 0.80
projectControllerMethod · 0.80
stateChangedMethod · 0.45

Tested by

no test coverage detected