Changeset 88874 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 5, 2021 12:38:50 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlWidget.cpp
r88741 r88874 315 315 UIGuestProcessControlWidget::~UIGuestProcessControlWidget() 316 316 { 317 saveSettings();318 cleanupListener();319 317 } 320 318 … … 393 391 this, &UIGuestProcessControlWidget::sltGuestSessionUnregistered); 394 392 } 393 connect(&uiCommon(), &UICommon::sigAskToCommitData, 394 this, &UIGuestProcessControlWidget::sltSaveSettings); 395 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 396 this, &UIGuestProcessControlWidget::sltCleanupListener); 395 397 } 396 398 … … 558 560 } 559 561 560 void UIGuestProcessControlWidget::s aveSettings()562 void UIGuestProcessControlWidget::sltSaveSettings() 561 563 { 562 564 if (!m_pSplitter) … … 565 567 } 566 568 567 void UIGuestProcessControlWidget:: cleanupListener()569 void UIGuestProcessControlWidget::sltCleanupListener() 568 570 { 569 571 /* Unregister everything: */ -
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIGuestProcessControlWidget.h
r88741 r88874 71 71 void sltCloseSessionOrProcess(); 72 72 void sltShowProperties(); 73 void sltSaveSettings(); 74 void sltCleanupListener(); 73 75 74 76 private: … … 82 84 void addGuestSession(CGuestSession guestSession); 83 85 void loadSettings(); 84 void cleanupListener();85 void saveSettings();86 86 87 87 CGuest m_comGuest; -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp
r88834 r88874 174 174 UIVMLogViewerWidget::~UIVMLogViewerWidget() 175 175 { 176 /* In machine UI context we perform cleanup during destruction.177 UIMachineLogic makes sure this happens early enough: */178 if (m_enmEmbedding == EmbedTo_Dialog)179 sltSaveOptions();180 176 } 181 177 … … 770 766 if (loadedFont != QFont()) 771 767 m_font = loadedFont; 772 /* In manager UI we cleanup by listening the sigAskToCommitData signal: */ 773 if (m_enmEmbedding == EmbedTo_Stack) 774 connect(&uiCommon(), &UICommon::sigAskToCommitData, 775 this, &UIVMLogViewerWidget::sltSaveOptions); 768 connect(&uiCommon(), &UICommon::sigAskToCommitData, 769 this, &UIVMLogViewerWidget::sltSaveOptions); 776 770 } 777 771 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.cpp
r88771 r88874 69 69 UIVMInformationDialog::~UIVMInformationDialog() 70 70 { 71 saveSettings();72 71 } 73 72 … … 118 117 } 119 118 120 void UIVMInformationDialog::s aveSettings()119 void UIVMInformationDialog::sltSaveSettings() 121 120 { 122 121 /* Save window geometry: */ … … 135 134 /* Load settings: */ 136 135 loadSettings(); 136 connect(&uiCommon(), &UICommon::sigAskToCommitData, 137 this, &UIVMInformationDialog::sltSaveSettings); 137 138 } 138 139 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIVMInformationDialog.h
r88771 r88874 73 73 /** Handles tab-widget page change. */ 74 74 void sltHandlePageChanged(int iIndex); 75 void sltSaveSettings(); 75 76 76 77 private: … … 90 91 /** Loads settings. */ 91 92 void loadSettings(); 92 void saveSettings();93 93 94 94 /** @name Widget variables. -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r88785 r88874 3867 3867 UISoftKeyboard::~UISoftKeyboard() 3868 3868 { 3869 saveSettings();3870 keyboard().ReleaseKeys();3871 3869 } 3872 3870 … … 4217 4215 4218 4216 connect(this, &UISoftKeyboard::sigHelpRequested, &msgCenter(), &UIMessageCenter::sltHandleHelpRequest); 4219 } 4220 4221 void UISoftKeyboard::saveSettings() 4217 connect(&uiCommon(), &UICommon::sigAskToCommitData, this, &UISoftKeyboard::sltSaveSettings); 4218 connect(&uiCommon(), &UICommon::sigAskToCommitData, this, &UISoftKeyboard::sltReleaseKeys); 4219 } 4220 4221 void UISoftKeyboard::sltSaveSettings() 4222 4222 { 4223 4223 /* Save geometry to extradata: */ … … 4243 4243 } 4244 4244 4245 void UISoftKeyboard::sltReleaseKeys() 4246 { 4247 keyboard().ReleaseKeys(); 4248 } 4249 4245 4250 void UISoftKeyboard::loadSettings() 4246 4251 { -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r88785 r88874 104 104 void sltResetKeyboard(); 105 105 void sltHandleHelpRequest(); 106 void sltSaveSettings(); 107 void sltReleaseKeys(); 106 108 107 109 private: … … 109 111 void prepareObjects(); 110 112 void prepareConnections(); 111 void saveSettings();112 113 void loadSettings(); 113 114 void configure();
Note:
See TracChangeset
for help on using the changeset viewer.