MCPcopy Create free account
hub / github.com/KDE/gwenview / createHudButton

Method createHudButton

lib/documentview/documentview.cpp:200–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 }
199
200 HudButton *createHudButton(const QString &text, const QString &iconName, bool showText)
201 {
202 auto button = new HudButton;
203 if (showText) {
204 button->setText(text);
205 } else {
206 button->setToolTip(text);
207 }
208 button->setIcon(QIcon::fromTheme(iconName));
209 return button;
210 }
211
212 void setupHud()
213 {

Callers

nothing calls this directly

Calls 2

setIconMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected