Changeset 105586 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 5, 2024 2:28:46 PM (6 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp
r105585 r105586 5 5 6 6 /* 7 * Copyright (C) 2009-202 3Oracle and/or its affiliates.7 * Copyright (C) 2009-2024 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 99 99 , m_strHelpKeyword(strHelpKeyword) 100 100 , m_iLastIndex(-1) 101 , m_fAborted(true) 101 102 , m_fClosed(false) 102 103 , m_pLabelPixmap(0) … … 234 235 void UINativeWizard::keyPressEvent(QKeyEvent *pEvent) 235 236 { 237 // WORKAROUND: 238 // In non-modal case we'll have to handle Escape button ourselves. 239 // In modal case QDialog does this itself internally by unwinding the event-loop. 240 236 241 /* Different handling depending on current modality: */ 237 242 const Qt::WindowModality enmModality = windowHandle()->modality(); … … 276 281 { 277 282 m_fClosed = true; 283 if (m_fAborted) 284 cleanWizard(); 278 285 emit sigClose(m_enmType); 279 286 } … … 374 381 /* Different handling depending on current modality: */ 375 382 if (windowHandle()->modality() == Qt::NonModal) 383 { 384 m_fAborted = false; 376 385 close(); 386 } 377 387 else 378 388 accept(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h
r105585 r105586 5 5 6 6 /* 7 * Copyright (C) 2009-202 3Oracle and/or its affiliates.7 * Copyright (C) 2009-2024 Oracle and/or its affiliates. 8 8 * 9 9 * This file is part of VirtualBox base platform packages, as … … 155 155 156 156 protected slots: 157 157 158 /** Handles translation event. */ 158 159 virtual void sltRetranslateUI(); … … 210 211 /** Holds the set of invisible pages. */ 211 212 QSet<int> m_invisiblePages; 213 /** Holds whether user has requested to abort wizard. */ 214 bool m_fAborted; 212 215 /** Holds whether the dialod had emitted signal to be closed. */ 213 216 bool m_fClosed;
Note:
See TracChangeset
for help on using the changeset viewer.