VirtualBox

Changeset 9970 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 26, 2008 4:14:10 PM (17 years ago)
Author:
vboxsync
Message:

Fe/Qt4: Integrate QILabel into Global/VM Settings dialogs.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobalSettingsDlg.cpp

    r9889 r9970  
    111111
    112112    mLbWhatsThis->setFixedHeight (mLbWhatsThis->frameWidth() * 2 +
    113                                   6 /* seems that RichText adds some margin */ +
     113                                  mLbWhatsThis->margin() * 2 +
    114114                                  mLbWhatsThis->fontMetrics().lineSpacing() * 4);
    115     mLbWhatsThis->setMinimumWidth (mLbWhatsThis->frameWidth() * 2 +
    116                                    6 /* seems that RichText adds some margin */ +
    117                                    mLbWhatsThis->fontMetrics().width ('m') * 40);
    118115
    119116    /* Common connections */
     
    392389void VBoxGlobalSettingsDlg::setWarning (const QString &aWarning)
    393390{
     391    /* Not touching QILabel until dialog is polished otherwise
     392     * it can change its size to undefined */
     393    if (!mPolished)
     394        return;
     395
    394396    mWarnString = aWarning;
    395397    if (!aWarning.isEmpty())
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsDlg.cpp

    r9951 r9970  
    106106
    107107    mLbWhatsThis->setFixedHeight (mLbWhatsThis->frameWidth() * 2 +
    108                                   6 /* seems that RichText adds some margin */ +
     108                                  mLbWhatsThis->margin() * 2 +
    109109                                  mLbWhatsThis->fontMetrics().lineSpacing() * 4);
    110     mLbWhatsThis->setMinimumWidth (mLbWhatsThis->frameWidth() * 2 +
    111                                    6 /* seems that RichText adds some margin */ +
    112                                    mLbWhatsThis->fontMetrics().width ('m') * 40);
    113110
    114111    /* Common connections */
     
    535532void VBoxVMSettingsDlg::setWarning (const QString &aWarning)
    536533{
     534    /* Not touching QILabel until dialog is polished otherwise
     535     * it can change its size to undefined */
     536    if (!mPolished)
     537        return;
     538
    537539    mWarnString = aWarning;
    538540    if (!aWarning.isEmpty())
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsDlg.ui

    r9783 r9970  
    219219    </item>
    220220    <item row="2" column="1" >
    221      <widget class="QLabel" name="mLbWhatsThis" >
     221     <widget class="QILabel" name="mLbWhatsThis" >
    222222      <property name="frameShape" >
    223223       <enum>QFrame::Box</enum>
     
    225225      <property name="frameShadow" >
    226226       <enum>QFrame::Sunken</enum>
    227       </property>
    228       <property name="text" >
    229        <string/>
    230227      </property>
    231228      <property name="alignment" >
     
    256253   <header>QIDialogButtonBox.h</header>
    257254  </customwidget>
     255  <customwidget>
     256   <class>QILabel</class>
     257   <extends>QLabel</extends>
     258   <header>QILabel.h</header>
     259  </customwidget>
    258260 </customwidgets>
    259261 <resources>
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui

    r9688 r9970  
    7878       </property>
    7979       <property name="icon" >
    80 -       <iconset resource="../VirtualBox.qrc" >:/machine_16px.png</iconset>
     80        <iconset resource="../VirtualBox.qrc" >:/machine_16px.png</iconset>
    8181       </property>
    8282       <property name="text" >
     
    324324    </item>
    325325    <item row="2" column="1" >
    326      <widget class="QLabel" name="mLbWhatsThis" >
     326     <widget class="QILabel" name="mLbWhatsThis" >
    327327      <property name="frameShape" >
    328328       <enum>QFrame::Box</enum>
     
    330330      <property name="frameShadow" >
    331331       <enum>QFrame::Sunken</enum>
    332       </property>
    333       <property name="text" >
    334        <string/>
    335332      </property>
    336333      <property name="alignment" >
     
    361358   <header>QIDialogButtonBox.h</header>
    362359  </customwidget>
     360  <customwidget>
     361   <class>QILabel</class>
     362   <extends>QLabel</extends>
     363   <header>QILabel.h</header>
     364  </customwidget>
    363365 </customwidgets>
    364366 <resources>
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsSF.ui

    r9260 r9970  
    6161        </property>
    6262        <property name="whatsThis" >
    63          <string>&lt;qt>Lists all shared folders accessible to this machine. Use &lt;tt>net use x: \\vboxsvr\share&lt;/tt> to access a shared folder named &lt;i>share&lt;/i> from a DOS-like OS, or &lt;tt>mount -t vboxsf share mount_point&lt;/tt> to access it from a Linux OS. This feature requires Guest Additions.&lt;/qt></string>
     63         <string>Lists all shared folders accessible to this machine. Use 'net use x: \\vboxsvr\share' to access a shared folder named &lt;i>share&lt;/i> from a DOS-like OS, or 'mount -t vboxsf share mount_point' to access it from a Linux OS. This feature requires Guest Additions.</string>
    6464        </property>
    6565        <property name="uniformRowHeights" >
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