VirtualBox

Changeset 92149 in vbox for trunk


Ignore:
Timestamp:
Oct 29, 2021 1:54:47 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Revert r146357 and r146352 cause this functionality is no more necessary.

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

Legend:

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

    r92110 r92149  
    2020#include <QLabel>
    2121#include <QPainter>
    22 #include <QProgressBar>
    2322#include <QPushButton>
    2423#include <QStackedWidget>
     
    9392    , m_pLabelPageTitle(0)
    9493    , m_pWidgetStack(0)
    95     , m_pProgressStack(0)
    96     , m_pProgressBar(0)
    9794    , m_pNotificationCenter(0)
    9895{
     
    173170    connect(pPage, &UINativeWizardPage::completeChanged,
    174171            this, &UINativeWizard::sltCompleteChanged);
    175     connect(pPage, &UINativeWizardPage::sigProgressStarted,
    176             this, &UINativeWizard::sltHandleProgressStarted);
    177     connect(pPage, &UINativeWizardPage::sigProgressChange,
    178             this, &UINativeWizard::sltHandleProgressChange);
    179     connect(pPage, &UINativeWizardPage::sigProgressFinished,
    180             this, &UINativeWizard::sltHandleProgressFinished);
    181172
    182173    /* Returns added page index: */
     
    239230    pButtonCancel->setText(tr("&Cancel"));
    240231    pButtonCancel->setToolTip(tr("Cancel wizard execution."));
    241 }
    242 
    243 void UINativeWizard::sltHandleProgressStarted()
    244 {
    245     m_pProgressStack->setCurrentIndex(1);
    246 }
    247 
    248 void UINativeWizard::sltHandleProgressChange(ulong uPercent)
    249 {
    250     m_pProgressBar->setMinimum(0);
    251     m_pProgressBar->setValue(uPercent);
    252     m_pProgressBar->setMaximum(100);
    253 }
    254 
    255 void UINativeWizard::sltHandleProgressFinished()
    256 {
    257     m_pProgressStack->setCurrentIndex(0);
    258232}
    259233
     
    508482                        pLayoutBottom->addWidget(pButton);
    509483                    if (enmType == WizardButtonType_Help)
    510                     {
    511                         /* Prepare progress-stack: */
    512                         m_pProgressStack = new QStackedWidget(pWidgetBottom);
    513                         if (m_pProgressStack)
    514                         {
    515                             /* Prepare stretch: */
    516                             QWidget *pStretch = new QWidget(m_pProgressStack);
    517                             if (pStretch)
    518                                 m_pProgressStack->addWidget(pStretch);
    519 
    520                             /* Prepare progress-bar: */
    521                             m_pProgressBar = new QProgressBar(m_pProgressStack);
    522                             if (m_pProgressBar)
    523                             {
    524                                 m_pProgressBar->setMaximum(0);
    525                                 m_pProgressStack->addWidget(m_pProgressBar);
    526                             }
    527 
    528                             /* Add to layout: */
    529                             pLayoutBottom->addWidget(m_pProgressStack);
    530                         }
    531                     }
     484                        pLayoutBottom->addStretch(1);
    532485                    if (   pButton
    533486                        && enmType == WizardButtonType_Next)
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h

    r92110 r92149  
    3333/* Forward declarations: */
    3434class QLabel;
    35 class QProgressBar;
    3635class QPushButton;
    3736class QStackedWidget;
     
    139138protected slots:
    140139
    141     /** Handles signal about progress has started. */
    142     void sltHandleProgressStarted();
    143     /** Handles signal about progress changed.
    144       * @param  uPercent  Brings the progress percentage. */
    145     void sltHandleProgressChange(ulong uPercent);
    146     /** Handles signal about progress has finished. */
    147     void sltHandleProgressFinished();
    148 
    149 private slots:
    150 
    151140    /** Handles current-page change to page with @a iIndex. */
    152141    void sltCurrentIndexChanged(int iIndex = -1);
     
    206195    /** Holds the widget-stack instance. */
    207196    QStackedWidget                       *m_pWidgetStack;
    208     /** Holds the progress-stack instance. */
    209     QStackedWidget                       *m_pProgressStack;
    210     /** Holds the progress-bar instance. */
    211     QProgressBar                         *m_pProgressBar;
    212197    /** Holds button instance map. */
    213198    QMap<WizardButtonType, QPushButton*>  m_buttons;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizardPage.h

    r90990 r92149  
    3838    /** Notifies about page validity changes. */
    3939    void completeChanged();
    40 
    41     /** Notifies listeners about progress has started. */
    42     void sigProgressStarted();
    43     /** Notifies listeners about progress has changed.
    44       * @param  uPercent  Brings the progress percentage. */
    45     void sigProgressChange(ulong uPercent);
    46     /** Notifies listeners about progress has finished. */
    47     void sigProgressFinished();
    4840
    4941public:
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