MCPcopy Create free account
hub / github.com/KDE/kwin / buttonsToString

Function buttonsToString

src/debug_console.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static QString buttonsToString(Qt::MouseButtons buttons)
165{
166 QString ret;
167 for (uint i = 1; i < Qt::ExtraButton24; i = i << 1) {
168 if (buttons & i) {
169 ret.append(buttonToString(Qt::MouseButton(uint(buttons) & i)));
170 ret.append(QStringLiteral(" "));
171 }
172 };
173 return ret.trimmed();
174}
175
176static const QString s_hr = QStringLiteral("<hr/>");
177static const QString s_tableStart = QStringLiteral("<table>");

Callers 1

pointerButtonMethod · 0.70

Calls 3

buttonToStringFunction · 0.85
appendMethod · 0.80
MouseButtonClass · 0.50

Tested by

no test coverage detected