Changeset 47772 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 15, 2013 2:37:10 PM (11 years ago)
- 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 89 89 /* No page-title with tool-bar: */ 90 90 m_pLbTitle->hide(); 91 /* No whats-this with tool-bar: */92 m_pLbWhatsThis->hide();93 91 /* Create modern tool-bar selector: */ 94 92 m_pSelector = new VBoxSettingsToolBarSelector(this); … … 101 99 /* Create classical tree-view selector: */ 102 100 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); 104 102 m_pSelector->widget()->setFocus(); 105 103 pMainLayout->setSpacing(10); … … 129 127 m_pWhatsThisTimer->setSingleShot(true); 130 128 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);138 129 139 130 /* Set the default button: */ … … 464 455 } 465 456 466 #ifndef Q_WS_MAC467 if (strWhatsThisText.isEmpty())468 strWhatsThisText = whatsThis();469 m_pLbWhatsThis->setText(strWhatsThisText);470 #else /* !Q_WS_MAC */471 457 if (pWhatsThisWidget && !strWhatsThisText.isEmpty()) 472 458 pWhatsThisWidget->setToolTip(QString("<qt>%1</qt>").arg(strWhatsThisText)); 473 #endif /* Q_WS_MAC */474 459 } 475 460 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.ui
r43106 r47772 108 108 </widget> 109 109 </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" > 130 111 <widget class="QIDialogButtonBox" name="m_pButtonBox" > 131 112 <property name="standardButtons" > … … 142 123 <extends>QDialogButtonBox</extends> 143 124 <header>QIDialogButtonBox.h</header> 144 </customwidget>145 <customwidget>146 <class>QILabel</class>147 <extends>QLabel</extends>148 <header>QILabel.h</header>149 125 </customwidget> 150 126 </customwidgets>
Note:
See TracChangeset
for help on using the changeset viewer.