Changeset 79456 in vbox
- Timestamp:
- Jul 1, 2019 7:16:35 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131712
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r79440 r79456 3207 3207 QString strLayoutName = pCurrentLayout ? pCurrentLayout->name() : QString(); 3208 3208 updateStatusBarMessage(strLayoutName); 3209 updateLayoutSelector();3210 3209 } 3211 3210 … … 3242 3241 return; 3243 3242 m_pKeyboardWidget->update(); 3244 updateLayoutSelector ();3243 updateLayoutSelectorList(); 3245 3244 UISoftKeyboardLayout *pCurrentLayout = m_pKeyboardWidget->currentLayout(); 3246 3245 … … 3282 3281 return; 3283 3282 m_pKeyboardWidget->copyCurentLayout(); 3284 updateLayoutSelector ();3283 updateLayoutSelectorList(); 3285 3284 } 3286 3285 … … 3295 3294 if (m_pKeyboardWidget) 3296 3295 m_pKeyboardWidget->deleteCurrentLayout(); 3296 updateLayoutSelectorList(); 3297 if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout() && m_pLayoutSelector) 3298 m_pLayoutSelector->setCurrentLayout(m_pKeyboardWidget->currentLayout()->name()); 3297 3299 } 3298 3300 … … 3462 3464 } 3463 3465 } 3466 updateLayoutSelectorList(); 3467 if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout() && m_pLayoutSelector) 3468 m_pLayoutSelector->setCurrentLayout(m_pKeyboardWidget->currentLayout()->name()); 3464 3469 } 3465 3470 … … 3478 3483 } 3479 3484 3480 void UISoftKeyboard::updateLayoutSelector ()3485 void UISoftKeyboard::updateLayoutSelectorList() 3481 3486 { 3482 3487 if (!m_pKeyboardWidget || !m_pLayoutSelector) 3483 3488 return; 3484 3489 m_pLayoutSelector->setLayoutList(m_pKeyboardWidget->layoutNameList(), m_pKeyboardWidget->layoutUidList()); 3485 m_pLayoutSelector->setCurrentLayout(m_pKeyboardWidget->currentLayout() ? m_pKeyboardWidget->currentLayout()->name() : QString());3486 3490 } 3487 3491 -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r79404 r79456 97 97 void configure(); 98 98 void updateStatusBarMessage(const QString &strLayoutName); 99 void updateLayoutSelector ();99 void updateLayoutSelectorList(); 100 100 void setDialogGeometry(const QRect &geometry); 101 101 CKeyboard& keyboard() const;
Note:
See TracChangeset
for help on using the changeset viewer.