Changeset 89040 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 14, 2021 11:18:18 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144380
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r88802 r89040 1631 1631 QWidget *pCenterWidget = windowManager().realParentWindow(activeMachineWindow()); 1632 1632 m_pSoftKeyboardDialog = new UISoftKeyboard(0, uisession(), pCenterWidget, machine().GetName()); 1633 connect(m_pSoftKeyboardDialog, &UISoftKeyboard::sigClose, this, &UIMachineLogic::sltCloseSoftKeyboard );1633 connect(m_pSoftKeyboardDialog, &UISoftKeyboard::sigClose, this, &UIMachineLogic::sltCloseSoftKeyboardDefault); 1634 1634 } 1635 1635 … … 1643 1643 } 1644 1644 1645 void UIMachineLogic::sltCloseSoftKeyboard( )1645 void UIMachineLogic::sltCloseSoftKeyboard(bool fAsync /* = false */) 1646 1646 { 1647 1647 if (!m_pSoftKeyboardDialog) 1648 1648 return; 1649 m_pSoftKeyboardDialog->deleteLater(); 1649 if (fAsync) 1650 m_pSoftKeyboardDialog->deleteLater(); 1651 else 1652 delete m_pSoftKeyboardDialog; 1650 1653 m_pSoftKeyboardDialog = 0; 1651 1654 } … … 1834 1837 m_pVMInformationDialog->setWindowState(m_pVMInformationDialog->windowState() & ~Qt::WindowMinimized); 1835 1838 m_pVMInformationDialog->activateWindow(); 1836 connect(m_pVMInformationDialog, &UIVMInformationDialog::sigClose, 1837 this, &UIMachineLogic::sltCloseVMInformationDialog); 1838 } 1839 } 1840 1841 void UIMachineLogic::sltCloseVMInformationDialog() 1839 connect(m_pVMInformationDialog, &UIVMInformationDialog::sigClose, this, &UIMachineLogic::sltCloseVMInformationDialogDefault); 1840 } 1841 } 1842 1843 void UIMachineLogic::sltCloseVMInformationDialog(bool fAsync /* = false */) 1842 1844 { 1843 1845 if (!m_pVMInformationDialog) 1844 1846 return; 1845 m_pVMInformationDialog->deleteLater(); 1847 if (fAsync) 1848 m_pVMInformationDialog->deleteLater(); 1849 else 1850 delete m_pVMInformationDialog; 1846 1851 m_pVMInformationDialog = 0; 1847 1852 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r88785 r89040 268 268 void sltShowKeyboardSettings(); 269 269 void sltShowSoftKeyboard(); 270 void sltCloseSoftKeyboard(); 270 void sltCloseSoftKeyboard(bool fAsync = false); 271 void sltCloseSoftKeyboardDefault() { sltCloseSoftKeyboard(true); } 271 272 void sltToggleMouseIntegration(bool fEnabled); 272 273 void sltTypeCAD(); … … 281 282 void sltTakeSnapshot(); 282 283 void sltShowInformationDialog(); 283 void sltCloseVMInformationDialog(); 284 void sltCloseVMInformationDialog(bool fAsync = false); 285 void sltCloseVMInformationDialogDefault() { sltCloseVMInformationDialog(true); } 284 286 void sltShowFileManagerDialog(); 285 287 void sltCloseFileManagerDialog();
Note:
See TracChangeset
for help on using the changeset viewer.