Changeset 10700 in vbox
- Timestamp:
- Jul 16, 2008 1:37:07 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsParallel.cpp
r10167 r10700 41 41 42 42 /* Setup constraints */ 43 mLeIRQ->setMaximumWidth (mLeIRQ->fontMetrics().width ("888888")); 44 mLeIRQ->setMinimumWidth (mLeIRQ->minimumWidth()); 45 mLeIOPort->setMaximumWidth (mLeIOPort->fontMetrics().width ("8888888")); 46 mLeIOPort->setMinimumWidth (mLeIOPort->minimumWidth()); 43 mLeIRQ->setFixedWidth (mLeIRQ->fontMetrics().width ("8888")); 44 mLeIOPort->setFixedWidth (mLeIOPort->fontMetrics().width ("8888888")); 47 45 48 46 /* Set initial values */ … … 161 159 /* TabWidget creation */ 162 160 mTabWidget = new QTabWidget (this); 163 mTabWidget->setSizePolicy (QSizePolicy::Expanding,164 QSizePolicy::Fixed);165 161 QVBoxLayout *layout = new QVBoxLayout (this); 166 162 layout->setContentsMargins (0, 5, 0, 5); 167 163 layout->addWidget (mTabWidget); 168 layout->addStretch();169 164 } 170 165 -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsParallel.ui
r10167 r10700 23 23 <x>0</x> 24 24 <y>0</y> 25 <width>3 78</width>26 <height>1 63</height>25 <width>348</width> 26 <height>122</height> 27 27 </rect> 28 28 </property> 29 <layout class="Q VBoxLayout" >30 <item >31 <widget class="Q GroupBox" name="mGbParallel" >29 <layout class="QGridLayout" > 30 <item row="0" column="0" colspan="2" > 31 <widget class="QCheckBox" name="mGbParallel" > 32 32 <property name="whatsThis" > 33 33 <string>When checked, enables the given parallel port of the virtual machine.</string> 34 34 </property> 35 <property name="t itle" >35 <property name="text" > 36 36 <string>&Enable Parallel Port</string> 37 37 </property> 38 <property name="check able" >38 <property name="checked" > 39 39 <bool>true</bool> 40 40 </property> 41 </widget> 42 </item> 43 <item row="1" column="0" > 44 <spacer> 45 <property name="orientation" > 46 <enum>Qt::Horizontal</enum> 47 </property> 48 <property name="sizeType" > 49 <enum>QSizePolicy::Fixed</enum> 50 </property> 51 <property name="sizeHint" > 52 <size> 53 <width>20</width> 54 <height>20</height> 55 </size> 56 </property> 57 </spacer> 58 </item> 59 <item row="1" column="1" > 60 <widget class="QWidget" native="1" name="mParallelChild" > 41 61 <layout class="QGridLayout" > 62 <property name="leftMargin" > 63 <number>0</number> 64 </property> 42 65 <property name="topMargin" > 43 <number>5</number> 66 <number>0</number> 67 </property> 68 <property name="rightMargin" > 69 <number>0</number> 70 </property> 71 <property name="bottomMargin" > 72 <number>0</number> 44 73 </property> 45 74 <item row="0" column="0" > 46 75 <widget class="QLabel" name="mLbNumber" > 47 76 <property name="text" > 48 <string>Port &Number</string> 77 <string>Port &Number:</string> 78 </property> 79 <property name="alignment" > 80 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 49 81 </property> 50 82 <property name="buddy" > … … 61 93 </item> 62 94 <item row="0" column="2" > 63 <layout class="QHBoxLayout" > 64 <item> 65 <widget class="QLabel" name="mLbIRQ" > 66 <property name="text" > 67 <string>&IRQ</string> 68 </property> 69 <property name="buddy" > 70 <cstring>mLeIRQ</cstring> 71 </property> 72 </widget> 73 </item> 74 <item> 75 <widget class="QLineEdit" name="mLeIRQ" > 76 <property name="sizePolicy" > 77 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 78 <horstretch>0</horstretch> 79 <verstretch>0</verstretch> 80 </sizepolicy> 81 </property> 82 <property name="whatsThis" > 83 <string>Displays the IRQ number of this parallel port. Valid values are integer numbers in range from <tt>0</tt> to <tt>255</tt>. Values greater than <tt>15</tt> may be used only if the <b>IO APIC</b> is enabled for this virtual machine.</string> 84 </property> 85 </widget> 86 </item> 87 </layout> 95 <widget class="QLabel" name="mLbIRQ" > 96 <property name="text" > 97 <string>&IRQ:</string> 98 </property> 99 <property name="buddy" > 100 <cstring>mLeIRQ</cstring> 101 </property> 102 </widget> 88 103 </item> 89 104 <item row="0" column="3" > 90 <layout class="QHBoxLayout" > 91 <item> 92 <widget class="QLabel" name="mLbIOPort" > 93 <property name="text" > 94 <string>I/O Po&rt</string> 95 </property> 96 <property name="buddy" > 97 <cstring>mLbIOPort</cstring> 98 </property> 99 </widget> 100 </item> 101 <item> 102 <widget class="QLineEdit" name="mLeIOPort" > 103 <property name="sizePolicy" > 104 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 105 <horstretch>0</horstretch> 106 <verstretch>0</verstretch> 107 </sizepolicy> 108 </property> 109 <property name="whatsThis" > 110 <string>Displays the base I/O port address of this parallel port. Valid values are integer numbers in range from <tt>0</tt> to <tt>0xFFFF</tt>.</string> 111 </property> 112 </widget> 113 </item> 114 </layout> 105 <widget class="QLineEdit" name="mLeIRQ" > 106 <property name="sizePolicy" > 107 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 108 <horstretch>0</horstretch> 109 <verstretch>0</verstretch> 110 </sizepolicy> 111 </property> 112 <property name="whatsThis" > 113 <string>Displays the IRQ number of this parallel port. Valid values are integer numbers in range from <tt>0</tt> to <tt>255</tt>. Values greater than <tt>15</tt> may be used only if the <b>IO APIC</b> is enabled for this virtual machine.</string> 114 </property> 115 </widget> 115 116 </item> 116 117 <item row="0" column="4" > 117 <spacer> 118 <property name="orientation" > 119 <enum>Qt::Horizontal</enum> 120 </property> 121 <property name="sizeHint" > 122 <size> 123 <width>0</width> 124 <height>20</height> 125 </size> 126 </property> 127 </spacer> 128 </item> 129 <item rowspan="2" row="1" column="0" > 118 <widget class="QLabel" name="mLbIOPort" > 119 <property name="text" > 120 <string>I/O Po&rt:</string> 121 </property> 122 <property name="buddy" > 123 <cstring>mLbIOPort</cstring> 124 </property> 125 </widget> 126 </item> 127 <item row="0" column="5" > 128 <widget class="QLineEdit" name="mLeIOPort" > 129 <property name="sizePolicy" > 130 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > 131 <horstretch>0</horstretch> 132 <verstretch>0</verstretch> 133 </sizepolicy> 134 </property> 135 <property name="whatsThis" > 136 <string>Displays the base I/O port address of this parallel port. Valid values are integer numbers in range from <tt>0</tt> to <tt>0xFFFF</tt>.</string> 137 </property> 138 </widget> 139 </item> 140 <item row="1" column="0" > 130 141 <widget class="QLabel" name="mLbPath" > 131 142 <property name="text" > 132 <string>Port &Path</string> 143 <string>Port &Path:</string> 144 </property> 145 <property name="alignment" > 146 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 133 147 </property> 134 148 <property name="buddy" > … … 137 151 </widget> 138 152 </item> 139 <item row span="2" row="1" column="1" colspan="4" >153 <item row="1" column="1" colspan="5" > 140 154 <widget class="QLineEdit" name="mLePath" > 141 155 <property name="whatsThis" > … … 143 157 </property> 144 158 </widget> 145 </item>146 <item row="3" column="2" >147 <spacer>148 <property name="orientation" >149 <enum>Qt::Vertical</enum>150 </property>151 <property name="sizeHint" >152 <size>153 <width>20</width>154 <height>0</height>155 </size>156 </property>157 </spacer>158 159 </item> 159 160 </layout> 160 161 </widget> 162 </item> 163 <item row="1" column="2" > 164 <spacer> 165 <property name="orientation" > 166 <enum>Qt::Horizontal</enum> 167 </property> 168 <property name="sizeHint" > 169 <size> 170 <width>40</width> 171 <height>20</height> 172 </size> 173 </property> 174 </spacer> 175 </item> 176 <item row="2" column="1" > 177 <spacer> 178 <property name="orientation" > 179 <enum>Qt::Vertical</enum> 180 </property> 181 <property name="sizeHint" > 182 <size> 183 <width>16</width> 184 <height>21</height> 185 </size> 186 </property> 187 </spacer> 161 188 </item> 162 189 </layout> 163 190 </widget> 164 191 <resources/> 165 <connections/> 192 <connections> 193 <connection> 194 <sender>mGbParallel</sender> 195 <signal>toggled(bool)</signal> 196 <receiver>mParallelChild</receiver> 197 <slot>setEnabled(bool)</slot> 198 <hints> 199 <hint type="sourcelabel" > 200 <x>76</x> 201 <y>20</y> 202 </hint> 203 <hint type="destinationlabel" > 204 <x>285</x> 205 <y>120</y> 206 </hint> 207 </hints> 208 </connection> 209 </connections> 166 210 </ui>
Note:
See TracChangeset
for help on using the changeset viewer.