VirtualBox

Changeset 79682 in vbox


Ignore:
Timestamp:
Jul 11, 2019 7:25:08 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9495: New Cloud VM wizard: Make it possible to schedule auto-finish (creating/launching) step making this wizard able to perform VM launching without user being involved; it's required for 2 phase'd export, s.a. bugref:9489.

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

Legend:

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

    r79656 r79682  
    1515 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1616 */
     17
     18/* Qt includes: */
     19#include <QAbstractButton>
    1720
    1821/* GUI includes: */
     
    163166}
    164167
     168void UIWizardNewCloudVM::scheduleAutoFinish()
     169{
     170    QMetaObject::invokeMethod(this, "sltTriggerFinishButton", Qt::QueuedConnection);
     171}
     172
    165173void UIWizardNewCloudVM::retranslateUi()
    166174{
     
    172180    setButtonText(QWizard::FinishButton, tr("Create"));
    173181}
     182
     183void UIWizardNewCloudVM::sltTriggerFinishButton()
     184{
     185    button(QWizard::FinishButton)->click();
     186}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVM.h

    r79656 r79682  
    8585    bool createCloudVM();
    8686
     87    /** Schedules Finish button trigger for
     88      * the next event-loop cicle. */
     89    void scheduleAutoFinish();
     90
    8791protected:
    8892
    8993    /** Handles translation event. */
    9094    virtual void retranslateUi() /* override */;
     95
     96private slots:
     97
     98    /** Triggers Finish button. */
     99    void sltTriggerFinishButton();
    91100
    92101private:
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