MCPcopy Create free account
hub / github.com/KDE/falkon / GM_Icon

Method GM_Icon

src/plugins/GreaseMonkey/gm_icon.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <QMenu>
24
25GM_Icon::GM_Icon(GM_Manager *manager)
26 : AbstractButtonInterface(manager)
27 , m_manager(manager)
28{
29 setIcon(QIcon(QSL(":gm/data/icon.svg")));
30 setTitle(tr("GreaseMonkey"));
31
32 updateState(m_manager->isEnabled());
33
34 connect(this, &AbstractButtonInterface::clicked, this, &GM_Icon::handleClicked);
35 connect(m_manager, &GM_Manager::enabledChanged, this, &GM_Icon::updateState);
36}
37
38QString GM_Icon::id() const
39{

Callers

nothing calls this directly

Calls 2

QIconClass · 0.50
isEnabledMethod · 0.45

Tested by

no test coverage detected