mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
[Hotkey] Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
9dbb441e44
commit
ef4640e66f
@@ -113,7 +113,7 @@ namespace BlackGui
|
||||
|
||||
if (sGui && sGui->getInputManager())
|
||||
{
|
||||
connect(sGui->getInputManager(), &BlackCore::CInputManager::combinationSelectionChanged, this, &CHotkeyDialog::combinationSelectionChanged);
|
||||
connect(sGui->getInputManager(), &BlackCore::CInputManager::combinationSelectionChanged, this, &CHotkeyDialog::combinationSelectionChanged);
|
||||
connect(sGui->getInputManager(), &BlackCore::CInputManager::combinationSelectionFinished, this, &CHotkeyDialog::combinationSelectionFinished);
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ namespace BlackGui
|
||||
|
||||
void CHotkeyDialog::changeSelectedAction(const QItemSelection &selected, const QItemSelection &deselected)
|
||||
{
|
||||
Q_UNUSED(deselected);
|
||||
Q_UNUSED(deselected)
|
||||
if (selected.indexes().isEmpty()) { return; }
|
||||
const auto index = selected.indexes().first();
|
||||
m_actionHotkey.setAction(index.data(CActionModel::ActionRole).toString());
|
||||
@@ -265,7 +265,7 @@ namespace BlackGui
|
||||
|
||||
void CHotkeyDialog::changeApplicableMachine(int index)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
const QVariant userData = ui->cb_Identifier->currentData();
|
||||
Q_ASSERT(userData.canConvert<CIdentifier>());
|
||||
m_actionHotkey.setApplicableMachine(userData.value<CIdentifier>());
|
||||
|
||||
Reference in New Issue
Block a user