Changeset 88911 in vbox
- Timestamp:
- May 6, 2021 5:46:09 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r88910 r88911 4048 4048 if (m_pKeyboardWidget) 4049 4049 m_pKeyboardWidget->setColorThemeByName(strColorThemeName); 4050 saveSelectedColorThemeName(); 4050 4051 } 4051 4052 … … 4129 4130 m_pSettingsWidget->setColorSelectionButtonBackgroundAndTooltip(static_cast<KeyboardColorType>(iColorRow), 4130 4131 newColor, m_pKeyboardWidget->isColorThemeEditable()); 4132 saveCustomColorTheme(); 4131 4133 } 4132 4134 … … 4240 4242 } 4241 4243 4244 void UISoftKeyboard::saveCustomColorTheme() 4245 { 4246 if (!m_pKeyboardWidget) 4247 return; 4248 /* Save the changes to the 'Custom' color theme to extra data: */ 4249 QStringList colors = m_pKeyboardWidget->colorsToStringList("Custom"); 4250 colors.prepend("Custom"); 4251 gEDataManager->setSoftKeyboardColorTheme(colors); 4252 } 4253 4254 void UISoftKeyboard::saveSelectedColorThemeName() 4255 { 4256 if (!m_pKeyboardWidget) 4257 return; 4258 gEDataManager->setSoftKeyboardSelectedColorTheme(m_pKeyboardWidget->currentColorThemeName()); 4259 } 4260 4242 4261 void UISoftKeyboard::sltSaveSettings() 4243 4262 { … … 4245 4264 if (m_pKeyboardWidget) 4246 4265 { 4247 /* Save the changes to the 'Custom' color theme to extra data: */4248 QStringList colors = m_pKeyboardWidget->colorsToStringList("Custom");4249 colors.prepend("Custom");4250 gEDataManager->setSoftKeyboardColorTheme(colors);4251 gEDataManager->setSoftKeyboardSelectedColorTheme(m_pKeyboardWidget->currentColorThemeName());4252 4266 gEDataManager->setSoftKeyboardOptions(m_pKeyboardWidget->hideNumPad(), 4253 4267 m_pKeyboardWidget->hideOSMenuKeys(), -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r88910 r88911 114 114 void prepareConnections(); 115 115 void loadSettings(); 116 void saveCustomColorTheme(); 117 void saveSelectedColorThemeName(); 116 118 void saveDialogGeometry(); 117 119 void configure();
Note:
See TracChangeset
for help on using the changeset viewer.