Changeset 18259 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 25, 2009 1:57:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSettingsLanguage.cpp
r18247 r18259 257 257 258 258 /* Adjust selector list */ 259 #ifdef Q_WS_MAC 260 mTwLanguage->setFixedWidth (static_cast<QAbstractItemView*> (mTwLanguage) 261 #else /* Q_WS_MAC */ 259 262 mTwLanguage->setMinimumWidth (static_cast<QAbstractItemView*> (mTwLanguage) 263 #endif /* Q_WS_MAC */ 260 264 ->sizeHintForColumn (0) + 2 * mTwLanguage->frameWidth() + 261 265 QApplication::style()->pixelMetric (QStyle::PM_ScrollBarExtent)); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSettingsNetwork.cpp
r18251 r18259 249 249 mTwInterfaces->setContextMenuPolicy (Qt::CustomContextMenu); 250 250 251 /* Setup data label */252 mLbInfo->setMinimumHeight (fontMetrics().height() * 4);253 254 251 /* Prepare toolbar */ 255 252 mAddInterface = new QAction (mTwInterfaces); … … 318 315 mTwInterfaces->setCurrentItem (item); 319 316 updateCurrentItem(); 317 318 #ifdef Q_WS_MAC 319 int width = qMax (static_cast<QAbstractItemView*> (mTwInterfaces) 320 ->sizeHintForColumn (0) + 2 * mTwInterfaces->frameWidth() + 321 QApplication::style()->pixelMetric (QStyle::PM_ScrollBarExtent), 322 160); 323 mTwInterfaces->setFixedWidth (width); 324 mTwInterfaces->resizeColumnToContents (0); 325 #else /* Q_WS_MAC */ 326 mSpacer1->changeSize (0, 0, QSizePolicy::Ignored, QSizePolicy::Ignored); 327 #endif /* Q_WS_MAC */ 320 328 } 321 329 -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGLSettingsNetwork.ui
r18247 r18259 1 <ui version="4.0" > 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 2 3 <comment> 3 VBox frontends: Qt4 GUI ( "VirtualBox"):4 VBox frontends: Qt4 GUI ("VirtualBox"): 4 5 5 6 Copyright (C) 2009 Sun Microsystems, Inc. … … 9 10 you can redistribute it and/or modify it under the terms of the GNU 10 11 General Public License (GPL) as published by the Free Software 11 Foundation, in version 2 as it comes in the "COPYING"file of the12 Foundation, in version 2 as it comes in the "COPYING" file of the 12 13 VirtualBox OSE distribution. VirtualBox OSE is distributed in the 13 14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. … … 18 19 </comment> 19 20 <class>VBoxGLSettingsNetwork</class> 20 <widget class="QWidget" name="VBoxGLSettingsNetwork" 21 <property name="geometry" 21 <widget class="QWidget" name="VBoxGLSettingsNetwork"> 22 <property name="geometry"> 22 23 <rect> 23 24 <x>0</x> 24 25 <y>0</y> 25 <width> 346</width>26 <height>2 46</height>26 <width>286</width> 27 <height>219</height> 27 28 </rect> 28 29 </property> 29 <layout class="QGridLayout" >30 <item row="0" column="0" 30 <layout class="QGridLayout" name="gridLayout"> 31 <item row="0" column="0"> 31 32 <spacer> 32 <property name="orientation" 33 <property name="orientation"> 33 34 <enum>Qt::Horizontal</enum> 34 35 </property> 35 <property name="sizeType" 36 <property name="sizeType"> 36 37 <enum>QSizePolicy::Fixed</enum> 37 38 </property> 38 <property name="sizeHint" >39 <property name="sizeHint" stdset="0"> 39 40 <size> 40 41 <width>40</width> … … 44 45 </spacer> 45 46 </item> 46 <item row="0" column="1" colspan=" 3">47 <widget class="QLabel" name="mLbPageName" 48 <property name="text" 47 <item row="0" column="1" colspan="4"> 48 <widget class="QLabel" name="mLbPageName"> 49 <property name="text"> 49 50 <string>&Host-only Networks List:</string> 50 51 </property> 51 <property name="buddy" 52 <property name="buddy"> 52 53 <cstring>mTwInterfaces</cstring> 53 54 </property> 54 55 </widget> 55 56 </item> 56 <item row="1" column="1" rowspan="2" > 57 <spacer> 58 <property name="orientation" > 59 <enum>Qt::Horizontal</enum> 60 </property> 61 <property name="sizeType" > 62 <enum>QSizePolicy::Fixed</enum> 63 </property> 64 <property name="sizeHint" > 65 <size> 66 <width>20</width> 67 <height>10</height> 68 </size> 69 </property> 70 </spacer> 71 </item> 72 <item row="1" column="2" rowspan="2" > 73 <widget class="QTreeWidget" name="mTwInterfaces" > 74 <property name="rootIsDecorated" > 75 <bool>false</bool> 76 </property> 77 <property name="sizePolicy" > 78 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 57 <item row="1" column="2" rowspan="2"> 58 <widget class="QTreeWidget" name="mTwInterfaces"> 59 <property name="sizePolicy"> 60 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 79 61 <horstretch>0</horstretch> 80 62 <verstretch>0</verstretch> 81 63 </sizepolicy> 82 64 </property> 83 <property name="minimumSize" 65 <property name="minimumSize"> 84 66 <size> 85 67 <width>0</width> … … 87 69 </size> 88 70 </property> 89 <property name="whatsThis" 71 <property name="whatsThis"> 90 72 <string>Lists all available host-only networks.</string> 91 73 </property> 74 <property name="rootIsDecorated"> 75 <bool>false</bool> 76 </property> 92 77 <column> 93 <property name="text" 78 <property name="text"> 94 79 <string>Name</string> 95 80 </property> … … 97 82 </widget> 98 83 </item> 99 <item row="1" column="3" 100 <widget class="VBoxToolBar" name="mTbActions" 101 <property name="orientation" 84 <item row="1" column="3"> 85 <widget class="VBoxToolBar" name="mTbActions"> 86 <property name="orientation"> 102 87 <enum>Qt::Horizontal</enum> 103 88 </property> 104 89 </widget> 105 90 </item> 106 <item row="2" column=" 3">91 <item row="2" column="1"> 107 92 <spacer> 108 <property name="orientation" > 93 <property name="orientation"> 94 <enum>Qt::Horizontal</enum> 95 </property> 96 <property name="sizeType"> 97 <enum>QSizePolicy::Fixed</enum> 98 </property> 99 <property name="sizeHint" stdset="0"> 100 <size> 101 <width>20</width> 102 <height>20</height> 103 </size> 104 </property> 105 </spacer> 106 </item> 107 <item row="2" column="3"> 108 <spacer> 109 <property name="orientation"> 109 110 <enum>Qt::Vertical</enum> 110 111 </property> 111 <property name="sizeType" 112 <property name="sizeType"> 112 113 <enum>QSizePolicy::Expanding</enum> 113 114 </property> 114 <property name="sizeHint" >115 <property name="sizeHint" stdset="0"> 115 116 <size> 116 117 <width>10</width> … … 120 121 </spacer> 121 122 </item> 122 <item row="3" column="2" > 123 <widget class="QLabel" name="mLbInfo" > 124 <property name="sizePolicy" > 125 <sizepolicy vsizetype="Minimum" hsizetype="Expanding" > 123 <item row="2" column="4"> 124 <spacer name="mSpacer1"> 125 <property name="orientation"> 126 <enum>Qt::Horizontal</enum> 127 </property> 128 <property name="sizeType"> 129 <enum>QSizePolicy::Expanding</enum> 130 </property> 131 <property name="sizeHint" stdset="0"> 132 <size> 133 <width>2</width> 134 <height>20</height> 135 </size> 136 </property> 137 </spacer> 138 </item> 139 <item row="3" column="2" colspan="3"> 140 <widget class="QLabel" name="mLbInfo"> 141 <property name="sizePolicy"> 142 <sizepolicy hsizetype="Expanding" vsizetype="Minimum"> 126 143 <horstretch>0</horstretch> 127 144 <verstretch>0</verstretch> 128 145 </sizepolicy> 129 146 </property> 130 <property name="alignment" 147 <property name="alignment"> 131 148 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 132 149 </property> 133 <property name="wordWrap" 150 <property name="wordWrap"> 134 151 <bool>true</bool> 135 152 </property>
Note:
See TracChangeset
for help on using the changeset viewer.