VirtualBox

Changeset 90730 in vbox for trunk


Ignore:
Timestamp:
Aug 18, 2021 5:25:56 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: Move progress-related slots of UINativeWizard to protected area, they can be used from wizard sub-classes directly, s.a. r146352.

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

Legend:

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

    r90727 r90730  
    224224}
    225225
     226void UINativeWizard::sltHandleProgressStarted()
     227{
     228    m_pProgressStack->setCurrentIndex(1);
     229}
     230
     231void UINativeWizard::sltHandleProgressChange(ulong uPercent)
     232{
     233    m_pProgressBar->setMinimum(0);
     234    m_pProgressBar->setValue(uPercent);
     235    m_pProgressBar->setMaximum(100);
     236}
     237
     238void UINativeWizard::sltHandleProgressFinished()
     239{
     240    m_pProgressStack->setCurrentIndex(0);
     241}
     242
    226243void UINativeWizard::sltCurrentIndexChanged(int iIndex /* = -1 */)
    227244{
     
    281298    AssertMsgReturnVoid(pButtonNext, ("No Next wizard button found!\n"));
    282299    pButtonNext->setEnabled(pPage->isComplete());
    283 }
    284 
    285 void UINativeWizard::sltHandleProgressStarted()
    286 {
    287     m_pProgressStack->setCurrentIndex(1);
    288 }
    289 
    290 void UINativeWizard::sltHandleProgressChange(ulong uPercent)
    291 {
    292     m_pProgressBar->setMinimum(0);
    293     m_pProgressBar->setValue(uPercent);
    294     m_pProgressBar->setMaximum(100);
    295 }
    296 
    297 void UINativeWizard::sltHandleProgressFinished()
    298 {
    299     m_pProgressStack->setCurrentIndex(0);
    300300}
    301301
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h

    r90727 r90730  
    122122    virtual void retranslateUi() /* override */;
    123123
    124 private slots:
    125 
    126     /** Handles current-page change to page with @a iIndex. */
    127     void sltCurrentIndexChanged(int iIndex = -1);
    128     /** Handles page validity changes. */
    129     void sltCompleteChanged();
     124protected slots:
    130125
    131126    /** Handles signal about progress has started. */
     
    136131    /** Handles signal about progress has finished. */
    137132    void sltHandleProgressFinished();
     133
     134private slots:
     135
     136    /** Handles current-page change to page with @a iIndex. */
     137    void sltCurrentIndexChanged(int iIndex = -1);
     138    /** Handles page validity changes. */
     139    void sltCompleteChanged();
    138140
    139141    /** Toggles between basic and expert modes. */
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