VirtualBox

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


Ignore:
Timestamp:
Aug 15, 2013 2:37:10 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Settings Dialog: Removing whats-this pane; Moving whats-this tags to tool-tips.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.cpp

    r47763 r47772  
    8989    /* No page-title with tool-bar: */
    9090    m_pLbTitle->hide();
    91     /* No whats-this with tool-bar: */
    92     m_pLbWhatsThis->hide();
    9391    /* Create modern tool-bar selector: */
    9492    m_pSelector = new VBoxSettingsToolBarSelector(this);
     
    10199    /* Create classical tree-view selector: */
    102100    m_pSelector = new VBoxSettingsTreeViewSelector(this);
    103     pMainLayout->addWidget(m_pSelector->widget(), 0, 0, 3, 1);
     101    pMainLayout->addWidget(m_pSelector->widget(), 0, 0, 2, 1);
    104102    m_pSelector->widget()->setFocus();
    105103    pMainLayout->setSpacing(10);
     
    129127    m_pWhatsThisTimer->setSingleShot(true);
    130128    connect(m_pWhatsThisTimer, SIGNAL(timeout()), this, SLOT(sltUpdateWhatsThis()));
    131     m_pLbWhatsThis->setAutoFillBackground(true);
    132     QPalette whatsThisPalette = m_pLbWhatsThis->palette();
    133     whatsThisPalette.setBrush(QPalette::Window, whatsThisPalette.brush(QPalette::Midlight));
    134     m_pLbWhatsThis->setPalette(whatsThisPalette);
    135     m_pLbWhatsThis->setFixedHeight(m_pLbWhatsThis->frameWidth() * 2 +
    136                                    m_pLbWhatsThis->margin() * 2 +
    137                                    m_pLbWhatsThis->fontMetrics().lineSpacing() * 4);
    138129
    139130    /* Set the default button: */
     
    464455    }
    465456
    466 #ifndef Q_WS_MAC
    467     if (strWhatsThisText.isEmpty())
    468         strWhatsThisText = whatsThis();
    469     m_pLbWhatsThis->setText(strWhatsThisText);
    470 #else /* !Q_WS_MAC */
    471457    if (pWhatsThisWidget && !strWhatsThisText.isEmpty())
    472458        pWhatsThisWidget->setToolTip(QString("<qt>%1</qt>").arg(strWhatsThisText));
    473 #endif /* Q_WS_MAC */
    474459}
    475460
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.ui

    r43106 r47772  
    108108     </widget>
    109109    </item>
    110     <item row="2" column="1" >
    111      <widget class="QILabel" name="m_pLbWhatsThis" >
    112       <property name="frameShape" >
    113        <enum>QFrame::Box</enum>
    114       </property>
    115       <property name="frameShadow" >
    116        <enum>QFrame::Sunken</enum>
    117       </property>
    118       <property name="alignment" >
    119        <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
    120       </property>
    121       <property name="wordWrap" >
    122        <bool>true</bool>
    123       </property>
    124       <property name="margin" >
    125        <number>7</number>
    126       </property>
    127      </widget>
    128     </item>
    129     <item row="3" column="0" colspan="2" >
     110    <item row="2" column="0" colspan="2" >
    130111     <widget class="QIDialogButtonBox" name="m_pButtonBox" >
    131112      <property name="standardButtons" >
     
    142123   <extends>QDialogButtonBox</extends>
    143124   <header>QIDialogButtonBox.h</header>
    144   </customwidget>
    145   <customwidget>
    146    <class>QILabel</class>
    147    <extends>QLabel</extends>
    148    <header>QILabel.h</header>
    149125  </customwidget>
    150126 </customwidgets>
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