| 301 | } |
| 302 | |
| 303 | void 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 | |
| 319 | void QVButtonPanel::onVButtonClearAllLockStates() |
| 320 | { |