Convert keyboardShortcuts to new settings API
This commit is contained in:
@@ -182,34 +182,22 @@ void UtilitiesTabController::sendMediaStopSong()
|
|||||||
|
|
||||||
void UtilitiesTabController::sendKeyboardOne()
|
void UtilitiesTabController::sendKeyboardOne()
|
||||||
{
|
{
|
||||||
m_parent->appSettings()->beginGroup( "keyboardShortcuts" );
|
const auto commands = settings::getSetting(
|
||||||
const auto commands = m_parent->appSettings()
|
settings::StringSetting::KEYBOARDSHORTCUT_keyboardOne );
|
||||||
->value( "keyboardOne" )
|
|
||||||
.toString()
|
|
||||||
.toStdString();
|
|
||||||
m_parent->appSettings()->endGroup();
|
|
||||||
|
|
||||||
sendStringAsInput( commands );
|
sendStringAsInput( commands );
|
||||||
}
|
}
|
||||||
void UtilitiesTabController::sendKeyboardTwo()
|
void UtilitiesTabController::sendKeyboardTwo()
|
||||||
{
|
{
|
||||||
m_parent->appSettings()->beginGroup( "keyboardShortcuts" );
|
const auto commands = settings::getSetting(
|
||||||
const auto commands = m_parent->appSettings()
|
settings::StringSetting::KEYBOARDSHORTCUT_keyboardTwo );
|
||||||
->value( "keyboardTwo" )
|
|
||||||
.toString()
|
|
||||||
.toStdString();
|
|
||||||
m_parent->appSettings()->endGroup();
|
|
||||||
|
|
||||||
sendStringAsInput( commands );
|
sendStringAsInput( commands );
|
||||||
}
|
}
|
||||||
void UtilitiesTabController::sendKeyboardThree()
|
void UtilitiesTabController::sendKeyboardThree()
|
||||||
{
|
{
|
||||||
m_parent->appSettings()->beginGroup( "keyboardShortcuts" );
|
const auto commands = settings::getSetting(
|
||||||
const auto commands = m_parent->appSettings()
|
settings::StringSetting::KEYBOARDSHORTCUT_keyboardThree );
|
||||||
->value( "keyboardThree" )
|
|
||||||
.toString()
|
|
||||||
.toStdString();
|
|
||||||
m_parent->appSettings()->endGroup();
|
|
||||||
|
|
||||||
sendStringAsInput( commands );
|
sendStringAsInput( commands );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user