VirtualBox

Changeset 86848 in vbox


Ignore:
Timestamp:
Nov 10, 2020 4:49:42 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9722: VirtualBox Manager: Rework public key acquire dialog a bit, initial prepare functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp

    r86846 r86848  
    135135    /** Prepares all. */
    136136    void prepare();
     137    /** Prepares widgets. */
     138    void prepareWidgets();
     139    /** Prepare editor contents. */
     140    void prepareEditorContents();
    137141
    138142    /** Loads file contents.
     
    203207void UIAcquirePublicKeyDialog::prepare()
    204208{
     209    /* Prepare widgets: */
     210    prepareWidgets();
     211    /* Prepare editor contents: */
     212    prepareEditorContents();
     213    /* Apply language settings: */
     214    retranslateUi();
     215
     216    /* Resize to suitable size: */
     217    const int iMinimumHeightHint = minimumSizeHint().height();
     218    resize(iMinimumHeightHint * 2, iMinimumHeightHint);
     219}
     220
     221void UIAcquirePublicKeyDialog::prepareWidgets()
     222{
    205223    /* Prepare layout: */
    206224    QVBoxLayout *pLayout = new QVBoxLayout(this);
     
    224242        }
    225243    }
    226 
    227     /* Apply language settings: */
    228     retranslateUi();
    229 
    230     /* Load last remembered file contents: */
     244}
     245
     246void UIAcquirePublicKeyDialog::prepareEditorContents()
     247{
    231248    loadFileContents(gEDataManager->cloudConsolePublicKeyPath(), true /* ignore errors */);
    232 
    233     /* Resize to suitable size: */
    234     const int iMinimumHeightHint = minimumSizeHint().height();
    235     resize(iMinimumHeightHint * 2, iMinimumHeightHint);
    236249}
    237250
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