MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / onVButtonLockStateChanged

Method onVButtonLockStateChanged

QKeyMapper/qvbuttonpanel.cpp:303–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void QVButtonPanel::onVButtonLockStateChanged(const QString &keyName, bool isLocked)
304{
305 int idx = m_keyNames.indexOf(keyName);
306
307 // Maintain the tracking set regardless of whether the button is currently visible
308 if (isLocked) {
309 m_lockedKeyNames.insert(keyName);
310 } else {
311 m_lockedKeyNames.remove(keyName);
312 }
313
314 if (idx < 0 || idx >= m_buttons.size()) return;
315
316 applyButtonStyle(m_buttons.at(idx), isLocked);
317}
318
319void QVButtonPanel::onVButtonClearAllLockStates()
320{

Callers

nothing calls this directly

Calls 3

insertMethod · 0.80
removeMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected