Changeset 9688 in vbox for trunk/src/VBox
- Timestamp:
- Jun 13, 2008 2:20:29 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxVMSettingsDlg.h
r9677 r9688 25 25 26 26 #include "VBoxVMSettingsDlg.gen.h" 27 #include "QIMainDialog.h" 27 28 #include "COMDefs.h" 28 29 … … 34 35 class QWidgetStack; 35 36 36 class VBoxVMSettingsDlg : public Q Dialog,37 class VBoxVMSettingsDlg : public QIMainDialog, 37 38 public Ui::VBoxVMSettingsDlg 38 39 { -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsDlg.cpp
r9677 r9688 91 91 const QString &aCategory, 92 92 const QString &aControl) 93 : Q Dialog (aParent)93 : QIMainDialog (aParent) 94 94 , mPolished (false) 95 95 , mAllowResetFirstRunFlag (false) … … 100 100 /* Apply UI decorations */ 101 101 Ui::VBoxVMSettingsDlg::setupUi (this); 102 103 #ifndef Q_WS_MAC 104 setWindowIcon (QIcon (":/settings_16px.png")); 105 #endif /* Q_WS_MAC */ 102 106 103 107 mWarnIconLabel = new VBoxWarnIconLabel(); … … 457 461 { 458 462 if (!aObject->isWidgetType()) 459 return Q Dialog::eventFilter (aObject, aEvent);463 return QIMainDialog::eventFilter (aObject, aEvent); 460 464 461 465 QWidget *widget = static_cast<QWidget*> (aObject); 462 466 if (widget->topLevelWidget() != this) 463 return Q Dialog::eventFilter (aObject, aEvent);467 return QIMainDialog::eventFilter (aObject, aEvent); 464 468 465 469 switch (aEvent->type()) … … 502 506 } 503 507 504 return Q Dialog::eventFilter (aObject, aEvent);508 return QIMainDialog::eventFilter (aObject, aEvent); 505 509 } 506 510 507 511 void VBoxVMSettingsDlg::showEvent (QShowEvent *aEvent) 508 512 { 509 Q Dialog::showEvent (aEvent);513 QIMainDialog::showEvent (aEvent); 510 514 511 515 /* One may think that QWidget::polish() is the right place to do things -
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMSettingsDlg.ui
r9674 r9688 18 18 </comment> 19 19 <class>VBoxVMSettingsDlg</class> 20 <widget class="Q Dialog" name="VBoxVMSettingsDlg" >20 <widget class="QMainWindow" name="VBoxVMSettingsDlg" > 21 21 <property name="geometry" > 22 22 <rect> 23 23 <x>0</x> 24 24 <y>0</y> 25 <width> 686</width>26 <height> 610</height>25 <width>526</width> 26 <height>424</height> 27 27 </rect> 28 28 </property> 29 29 <property name="windowTitle" > 30 <string> Dialog</string>30 <string>Settings</string> 31 31 </property> 32 <property name="windowIcon" > 33 <iconset resource="../VirtualBox.qrc" >:/settings_16px.png</iconset> 34 </property> 35 <layout class="QGridLayout" > 36 <property name="horizontalSpacing" > 37 <number>9</number> 38 </property> 39 <property name="verticalSpacing" > 40 <number>9</number> 41 </property> 42 <item rowspan="3" row="0" column="0" > 43 <widget class="QTreeWidget" name="mTwSelector" > 44 <property name="sizePolicy" > 45 <sizepolicy vsizetype="Expanding" hsizetype="Minimum" > 46 <horstretch>0</horstretch> 47 <verstretch>0</verstretch> 48 </sizepolicy> 49 </property> 50 <property name="verticalScrollBarPolicy" > 51 <enum>Qt::ScrollBarAlwaysOff</enum> 52 </property> 53 <property name="horizontalScrollBarPolicy" > 54 <enum>Qt::ScrollBarAlwaysOff</enum> 55 </property> 56 <property name="rootIsDecorated" > 57 <bool>false</bool> 58 </property> 59 <property name="uniformRowHeights" > 60 <bool>true</bool> 61 </property> 62 <column> 32 <widget class="QWidget" name="centralwidget" > 33 <layout class="QGridLayout" > 34 <property name="horizontalSpacing" > 35 <number>9</number> 36 </property> 37 <property name="verticalSpacing" > 38 <number>9</number> 39 </property> 40 <item rowspan="3" row="0" column="0" > 41 <widget class="QTreeWidget" name="mTwSelector" > 42 <property name="sizePolicy" > 43 <sizepolicy vsizetype="Expanding" hsizetype="Minimum" > 44 <horstretch>0</horstretch> 45 <verstretch>0</verstretch> 46 </sizepolicy> 47 </property> 48 <property name="verticalScrollBarPolicy" > 49 <enum>Qt::ScrollBarAlwaysOff</enum> 50 </property> 51 <property name="horizontalScrollBarPolicy" > 52 <enum>Qt::ScrollBarAlwaysOff</enum> 53 </property> 54 <property name="rootIsDecorated" > 55 <bool>false</bool> 56 </property> 57 <property name="uniformRowHeights" > 58 <bool>true</bool> 59 </property> 60 <column> 61 <property name="text" > 62 <string>Category</string> 63 </property> 64 </column> 65 <column> 66 <property name="text" > 67 <string>[id]</string> 68 </property> 69 </column> 70 <column> 71 <property name="text" > 72 <string>[link]</string> 73 </property> 74 </column> 75 <item> 76 <property name="text" > 77 <string> General </string> 78 </property> 79 <property name="icon" > 80 - <iconset resource="../VirtualBox.qrc" >:/machine_16px.png</iconset> 81 </property> 82 <property name="text" > 83 <string>00</string> 84 </property> 85 <property name="text" > 86 <string>#general</string> 87 </property> 88 </item> 89 <item> 90 <property name="text" > 91 <string> Hard Disks </string> 92 </property> 93 <property name="icon" > 94 <iconset resource="../VirtualBox.qrc" >:/diskim_16px.png</iconset> 95 </property> 96 <property name="text" > 97 <string>01</string> 98 </property> 99 <property name="text" > 100 <string>#hdds</string> 101 </property> 102 </item> 103 <item> 104 <property name="text" > 105 <string> CD/DVD-ROM </string> 106 </property> 107 <property name="icon" > 108 <iconset resource="../VirtualBox.qrc" >:/cd_16px.png</iconset> 109 </property> 110 <property name="text" > 111 <string>02</string> 112 </property> 113 <property name="text" > 114 <string>#dvd</string> 115 </property> 116 </item> 117 <item> 118 <property name="text" > 119 <string> Floppy </string> 120 </property> 121 <property name="icon" > 122 <iconset resource="../VirtualBox.qrc" >:/fd_16px.png</iconset> 123 </property> 124 <property name="text" > 125 <string>03</string> 126 </property> 127 <property name="text" > 128 <string>#floppy</string> 129 </property> 130 </item> 131 <item> 132 <property name="text" > 133 <string> Audio </string> 134 </property> 135 <property name="icon" > 136 <iconset resource="../VirtualBox.qrc" >:/sound_16px.png</iconset> 137 </property> 138 <property name="text" > 139 <string>04</string> 140 </property> 141 <property name="text" > 142 <string>#audio</string> 143 </property> 144 </item> 145 <item> 146 <property name="text" > 147 <string> Network </string> 148 </property> 149 <property name="icon" > 150 <iconset resource="../VirtualBox.qrc" >:/nw_16px.png</iconset> 151 </property> 152 <property name="text" > 153 <string>05</string> 154 </property> 155 <property name="text" > 156 <string>#network</string> 157 </property> 158 </item> 159 <item> 160 <property name="text" > 161 <string> Serial Ports </string> 162 </property> 163 <property name="icon" > 164 <iconset resource="../VirtualBox.qrc" >:/serial_port_16px.png</iconset> 165 </property> 166 <property name="text" > 167 <string>06</string> 168 </property> 169 <property name="text" > 170 <string>#serialPorts</string> 171 </property> 172 </item> 173 <item> 174 <property name="text" > 175 <string> Parallel Ports </string> 176 </property> 177 <property name="icon" > 178 <iconset resource="../VirtualBox.qrc" >:/parallel_port_16px.png</iconset> 179 </property> 180 <property name="text" > 181 <string>07</string> 182 </property> 183 <property name="text" > 184 <string>#parallelPorts</string> 185 </property> 186 </item> 187 <item> 188 <property name="text" > 189 <string> USB </string> 190 </property> 191 <property name="icon" > 192 <iconset resource="../VirtualBox.qrc" >:/usb_16px.png</iconset> 193 </property> 194 <property name="text" > 195 <string>08</string> 196 </property> 197 <property name="text" > 198 <string>#usb</string> 199 </property> 200 </item> 201 <item> 202 <property name="text" > 203 <string> Shared Folders </string> 204 </property> 205 <property name="icon" > 206 <iconset resource="../VirtualBox.qrc" >:/shared_folder_16px.png</iconset> 207 </property> 208 <property name="text" > 209 <string>09</string> 210 </property> 211 <property name="text" > 212 <string>#sfolders</string> 213 </property> 214 </item> 215 <item> 216 <property name="text" > 217 <string> Remote Display </string> 218 </property> 219 <property name="icon" > 220 <iconset resource="../VirtualBox.qrc" >:/vrdp_16px.png</iconset> 221 </property> 222 <property name="text" > 223 <string>10</string> 224 </property> 225 <property name="text" > 226 <string>#vrdp</string> 227 </property> 228 </item> 229 </widget> 230 </item> 231 <item row="0" column="1" > 232 <widget class="QLabel" name="mLbTitle" > 233 <property name="sizePolicy" > 234 <sizepolicy vsizetype="Fixed" hsizetype="Expanding" > 235 <horstretch>0</horstretch> 236 <verstretch>0</verstretch> 237 </sizepolicy> 238 </property> 239 <property name="palette" > 240 <palette> 241 <active> 242 <colorrole role="Window" > 243 <brush brushstyle="SolidPattern" > 244 <color alpha="255" > 245 <red>255</red> 246 <green>255</green> 247 <blue>255</blue> 248 </color> 249 </brush> 250 </colorrole> 251 </active> 252 <inactive> 253 <colorrole role="Window" > 254 <brush brushstyle="SolidPattern" > 255 <color alpha="255" > 256 <red>255</red> 257 <green>255</green> 258 <blue>255</blue> 259 </color> 260 </brush> 261 </colorrole> 262 </inactive> 263 <disabled> 264 <colorrole role="Window" > 265 <brush brushstyle="SolidPattern" > 266 <color alpha="255" > 267 <red>255</red> 268 <green>255</green> 269 <blue>255</blue> 270 </color> 271 </brush> 272 </colorrole> 273 </disabled> 274 </palette> 275 </property> 276 <property name="font" > 277 <font> 278 <family>Sans Serif</family> 279 <pointsize>11</pointsize> 280 <weight>75</weight> 281 <bold>true</bold> 282 </font> 283 </property> 284 <property name="autoFillBackground" > 285 <bool>true</bool> 286 </property> 287 <property name="frameShape" > 288 <enum>QFrame::Box</enum> 289 </property> 290 <property name="frameShadow" > 291 <enum>QFrame::Sunken</enum> 292 </property> 63 293 <property name="text" > 64 <string>Category</string> 65 </property> 66 </column> 67 <column> 294 <string/> 295 </property> 296 <property name="margin" > 297 <number>7</number> 298 </property> 299 </widget> 300 </item> 301 <item row="1" column="1" > 302 <widget class="QStackedWidget" name="mPageStack" > 303 <property name="sizePolicy" > 304 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 305 <horstretch>0</horstretch> 306 <verstretch>0</verstretch> 307 </sizepolicy> 308 </property> 309 <property name="currentIndex" > 310 <number>10</number> 311 </property> 312 <widget class="QWidget" name="mPageGeneral" /> 313 <widget class="QWidget" name="mPageHD" /> 314 <widget class="QWidget" name="mPageCD" /> 315 <widget class="QWidget" name="mPageFD" /> 316 <widget class="QWidget" name="mPageAudio" /> 317 <widget class="QWidget" name="mPageNetwork" /> 318 <widget class="QWidget" name="mPageSerial" /> 319 <widget class="QWidget" name="mPageParallel" /> 320 <widget class="QWidget" name="mPageUSB" /> 321 <widget class="QWidget" name="mPageShared" /> 322 <widget class="QWidget" name="mPageVrdp" /> 323 </widget> 324 </item> 325 <item row="2" column="1" > 326 <widget class="QLabel" name="mLbWhatsThis" > 327 <property name="frameShape" > 328 <enum>QFrame::Box</enum> 329 </property> 330 <property name="frameShadow" > 331 <enum>QFrame::Sunken</enum> 332 </property> 68 333 <property name="text" > 69 <string>[id]</string> 70 </property> 71 </column> 72 <column> 73 <property name="text" > 74 <string>[link]</string> 75 </property> 76 </column> 77 <item> 78 <property name="text" > 79 <string> General </string> 80 </property> 81 <property name="icon" > 82 <iconset resource="../VirtualBox.qrc" >:/machine_16px.png</iconset> 83 </property> 84 <property name="text" > 85 <string>00</string> 86 </property> 87 <property name="text" > 88 <string>#general</string> 89 </property> 90 </item> 91 <item> 92 <property name="text" > 93 <string> Hard Disks </string> 94 </property> 95 <property name="icon" > 96 <iconset resource="../VirtualBox.qrc" >:/diskim_16px.png</iconset> 97 </property> 98 <property name="text" > 99 <string>01</string> 100 </property> 101 <property name="text" > 102 <string>#hdds</string> 103 </property> 104 </item> 105 <item> 106 <property name="text" > 107 <string> CD/DVD-ROM </string> 108 </property> 109 <property name="icon" > 110 <iconset resource="../VirtualBox.qrc" >:/cd_16px.png</iconset> 111 </property> 112 <property name="text" > 113 <string>02</string> 114 </property> 115 <property name="text" > 116 <string>#dvd</string> 117 </property> 118 </item> 119 <item> 120 <property name="text" > 121 <string> Floppy </string> 122 </property> 123 <property name="icon" > 124 <iconset resource="../VirtualBox.qrc" >:/fd_16px.png</iconset> 125 </property> 126 <property name="text" > 127 <string>03</string> 128 </property> 129 <property name="text" > 130 <string>#floppy</string> 131 </property> 132 </item> 133 <item> 134 <property name="text" > 135 <string> Audio </string> 136 </property> 137 <property name="icon" > 138 <iconset resource="../VirtualBox.qrc" >:/sound_16px.png</iconset> 139 </property> 140 <property name="text" > 141 <string>04</string> 142 </property> 143 <property name="text" > 144 <string>#audio</string> 145 </property> 146 </item> 147 <item> 148 <property name="text" > 149 <string> Network </string> 150 </property> 151 <property name="icon" > 152 <iconset resource="../VirtualBox.qrc" >:/nw_16px.png</iconset> 153 </property> 154 <property name="text" > 155 <string>05</string> 156 </property> 157 <property name="text" > 158 <string>#network</string> 159 </property> 160 </item> 161 <item> 162 <property name="text" > 163 <string> Serial Ports </string> 164 </property> 165 <property name="icon" > 166 <iconset resource="../VirtualBox.qrc" >:/serial_port_16px.png</iconset> 167 </property> 168 <property name="text" > 169 <string>06</string> 170 </property> 171 <property name="text" > 172 <string>#serialPorts</string> 173 </property> 174 </item> 175 <item> 176 <property name="text" > 177 <string> Parallel Ports </string> 178 </property> 179 <property name="icon" > 180 <iconset resource="../VirtualBox.qrc" >:/parallel_port_16px.png</iconset> 181 </property> 182 <property name="text" > 183 <string>07</string> 184 </property> 185 <property name="text" > 186 <string>#parallelPorts</string> 187 </property> 188 </item> 189 <item> 190 <property name="text" > 191 <string> USB </string> 192 </property> 193 <property name="icon" > 194 <iconset resource="../VirtualBox.qrc" >:/usb_16px.png</iconset> 195 </property> 196 <property name="text" > 197 <string>08</string> 198 </property> 199 <property name="text" > 200 <string>#usb</string> 201 </property> 202 </item> 203 <item> 204 <property name="text" > 205 <string> Shared Folders </string> 206 </property> 207 <property name="icon" > 208 <iconset resource="../VirtualBox.qrc" >:/shared_folder_16px.png</iconset> 209 </property> 210 <property name="text" > 211 <string>09</string> 212 </property> 213 <property name="text" > 214 <string>#sfolders</string> 215 </property> 216 </item> 217 <item> 218 <property name="text" > 219 <string> Remote Display </string> 220 </property> 221 <property name="icon" > 222 <iconset resource="../VirtualBox.qrc" >:/vrdp_16px.png</iconset> 223 </property> 224 <property name="text" > 225 <string>10</string> 226 </property> 227 <property name="text" > 228 <string>#vrdp</string> 229 </property> 230 </item> 231 </widget> 232 </item> 233 <item row="0" column="1" > 234 <widget class="QLabel" name="mLbTitle" > 235 <property name="sizePolicy" > 236 <sizepolicy vsizetype="Fixed" hsizetype="Expanding" > 237 <horstretch>0</horstretch> 238 <verstretch>0</verstretch> 239 </sizepolicy> 240 </property> 241 <property name="palette" > 242 <palette> 243 <active> 244 <colorrole role="Window" > 245 <brush brushstyle="SolidPattern" > 246 <color alpha="255" > 247 <red>255</red> 248 <green>255</green> 249 <blue>255</blue> 250 </color> 251 </brush> 252 </colorrole> 253 </active> 254 <inactive> 255 <colorrole role="Window" > 256 <brush brushstyle="SolidPattern" > 257 <color alpha="255" > 258 <red>255</red> 259 <green>255</green> 260 <blue>255</blue> 261 </color> 262 </brush> 263 </colorrole> 264 </inactive> 265 <disabled> 266 <colorrole role="Window" > 267 <brush brushstyle="SolidPattern" > 268 <color alpha="255" > 269 <red>255</red> 270 <green>255</green> 271 <blue>255</blue> 272 </color> 273 </brush> 274 </colorrole> 275 </disabled> 276 </palette> 277 </property> 278 <property name="font" > 279 <font> 280 <family>Sans Serif</family> 281 <pointsize>11</pointsize> 282 <weight>75</weight> 283 <bold>true</bold> 284 </font> 285 </property> 286 <property name="autoFillBackground" > 287 <bool>true</bool> 288 </property> 289 <property name="frameShape" > 290 <enum>QFrame::Box</enum> 291 </property> 292 <property name="frameShadow" > 293 <enum>QFrame::Sunken</enum> 294 </property> 295 <property name="text" > 296 <string/> 297 </property> 298 <property name="margin" > 299 <number>7</number> 300 </property> 301 </widget> 302 </item> 303 <item row="1" column="1" > 304 <widget class="QStackedWidget" name="mPageStack" > 305 <property name="sizePolicy" > 306 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" > 307 <horstretch>0</horstretch> 308 <verstretch>0</verstretch> 309 </sizepolicy> 310 </property> 311 <property name="currentIndex" > 312 <number>0</number> 313 </property> 314 <widget class="QWidget" name="mPageGeneral" /> 315 <widget class="QWidget" name="mPageHD" /> 316 <widget class="QWidget" name="mPageCD" /> 317 <widget class="QWidget" name="mPageFD" /> 318 <widget class="QWidget" name="mPageAudio" /> 319 <widget class="QWidget" name="mPageNetwork" /> 320 <widget class="QWidget" name="mPageSerial" /> 321 <widget class="QWidget" name="mPageParallel" /> 322 <widget class="QWidget" name="mPageUSB" /> 323 <widget class="QWidget" name="mPageShared" /> 324 <widget class="QWidget" name="mPageVrdp" /> 325 </widget> 326 </item> 327 <item row="2" column="1" > 328 <widget class="QLabel" name="mLbWhatsThis" > 329 <property name="frameShape" > 330 <enum>QFrame::Box</enum> 331 </property> 332 <property name="frameShadow" > 333 <enum>QFrame::Sunken</enum> 334 </property> 335 <property name="text" > 336 <string/> 337 </property> 338 <property name="alignment" > 339 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 340 </property> 341 <property name="wordWrap" > 342 <bool>true</bool> 343 </property> 344 <property name="margin" > 345 <number>7</number> 346 </property> 347 </widget> 348 </item> 349 <item row="3" column="0" colspan="2" > 350 <widget class="QIDialogButtonBox" name="mButtonBox" > 351 <property name="standardButtons" > 352 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> 353 </property> 354 </widget> 355 </item> 356 </layout> 334 <string/> 335 </property> 336 <property name="alignment" > 337 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 338 </property> 339 <property name="wordWrap" > 340 <bool>true</bool> 341 </property> 342 <property name="margin" > 343 <number>7</number> 344 </property> 345 </widget> 346 </item> 347 <item row="3" column="0" colspan="2" > 348 <widget class="QIDialogButtonBox" name="mButtonBox" > 349 <property name="standardButtons" > 350 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set> 351 </property> 352 </widget> 353 </item> 354 </layout> 355 </widget> 357 356 </widget> 358 357 <customwidgets>
Note:
See TracChangeset
for help on using the changeset viewer.