VirtualBox

Ignore:
Timestamp:
Jun 4, 2007 6:57:59 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21747
Message:

Initial resize for the VBoxAddNIDialog to make it fit the aIfaceName (default or another passed name) in one string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2981 r3003  
    7272        buttonLayout->addItem (spacer);
    7373        buttonLayout->addWidget (btCancel);
     74
     75        /* resize to fit the aIfaceName in one string */
     76        int requiredWidth = mLeName->fontMetrics().width (aIfaceName) +
     77                            mLeName->frameWidth() * 2 +
     78                            mLeName->lineWidth() * 2 +
     79                            inputLayout->spacing() +
     80                            lbName->fontMetrics().width (lbName->text()) +
     81                            lbName->frameWidth() * 2 +
     82                            lbName->lineWidth() * 2 +
     83                            mainLayout->margin() * 2;
     84        resize (requiredWidth, minimumHeight());
    7485
    7586        /* Validate interface name field */
Note: See TracChangeset for help on using the changeset viewer.

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