VirtualBox

Changeset 105585 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 5, 2024 2:25:13 PM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164262
Message:

FE/Qt: bugref:10665: UINativeWizard: Reverting r164260 as it covers not all the cases; There will be another one.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r105583 r105585  
    55
    66/*
    7  * Copyright (C) 2009-2024 Oracle and/or its affiliates.
     7 * Copyright (C) 2009-2023 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    9999    , m_strHelpKeyword(strHelpKeyword)
    100100    , m_iLastIndex(-1)
    101     , m_fAborted(false)
    102101    , m_fClosed(false)
    103102    , m_pLabelPixmap(0)
     
    235234void UINativeWizard::keyPressEvent(QKeyEvent *pEvent)
    236235{
    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 
    241236    /* Different handling depending on current modality: */
    242237    const Qt::WindowModality enmModality = windowHandle()->modality();
     
    250245            case Qt::Key_Escape:
    251246            {
    252                 sltAbort();
     247                close();
    253248                return;
    254249            }
     
    281276        {
    282277            m_fClosed = true;
    283             if (m_fAborted)
    284                 cleanWizard();
    285278            emit sigClose(m_enmType);
    286279        }
     
    385378            accept();
    386379    }
    387 }
    388 
    389 void UINativeWizard::sltAbort()
    390 {
    391     cleanWizard();
    392     close();
    393380}
    394381
     
    552539                        this, &UINativeWizard::sltNext);
    553540                connect(wizardButton(WizardButtonType_Cancel), &QPushButton::clicked,
    554                         this, &UINativeWizard::sltAbort);
     541                        this, &UINativeWizard::close);
    555542            }
    556543
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h

    r105583 r105585  
    55
    66/*
    7  * Copyright (C) 2009-2024 Oracle and/or its affiliates.
     7 * Copyright (C) 2009-2023 Oracle and/or its affiliates.
    88 *
    99 * This file is part of VirtualBox base platform packages, as
     
    155155
    156156protected slots:
    157 
    158157    /** Handles translation event. */
    159158    virtual void sltRetranslateUI();
     
    170169    /** Switches to next page. */
    171170    void sltNext();
    172     /** Aborts wizard. */
    173     void sltAbort();
    174171
    175172    /** Handle help request*/
     
    213210    /** Holds the set of invisible pages. */
    214211    QSet<int>   m_invisiblePages;
    215     /** Holds whether user has requested to abort wizard. */
    216     bool        m_fAborted;
    217212    /** Holds whether the dialod had emitted signal to be closed. */
    218213    bool        m_fClosed;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette