Changeset 711 in vbox
- Timestamp:
- Feb 6, 2007 2:35:31 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 18350
- Location:
- trunk/src/VBox/Frontends/VirtualBox/ui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui
r704 r711 27 27 <x>0</x> 28 28 <y>0</y> 29 <width>5 20</width>29 <width>580</width> 30 30 <height>370</height> 31 31 </rect> … … 419 419 <number>0</number> 420 420 </property> 421 <property name="spacing"> 422 <number>10</number> 423 </property> 424 <widget class="QLayoutWidget"> 421 <widget class="QGroupBox"> 425 422 <property name="name"> 426 <cstring>layout47</cstring> 427 </property> 428 <hbox> 423 <cstring>grbKeyboard</cstring> 424 </property> 425 <property name="title"> 426 <string>&Keyboard</string> 427 </property> 428 <vbox> 429 429 <property name="name"> 430 430 <cstring>unnamed</cstring> … … 432 432 <widget class="QLayoutWidget"> 433 433 <property name="name"> 434 <cstring>layout HostKey</cstring>434 <cstring>layout47</cstring> 435 435 </property> 436 436 <hbox> … … 438 438 <cstring>unnamed</cstring> 439 439 </property> 440 <widget class="QLa bel">440 <widget class="QLayoutWidget"> 441 441 <property name="name"> 442 <cstring> txHostKey</cstring>442 <cstring>layoutHostKey</cstring> 443 443 </property> 444 <property name="text"> 445 <string>Host &Key</string> 444 <hbox> 445 <property name="name"> 446 <cstring>unnamed</cstring> 447 </property> 448 <widget class="QLabel"> 449 <property name="name"> 450 <cstring>txHostKey</cstring> 451 </property> 452 <property name="text"> 453 <string>&Host Key</string> 454 </property> 455 </widget> 456 </hbox> 457 </widget> 458 <spacer> 459 <property name="name"> 460 <cstring>spacer22</cstring> 446 461 </property> 447 </widget> 462 <property name="orientation"> 463 <enum>Horizontal</enum> 464 </property> 465 <property name="sizeType"> 466 <enum>Expanding</enum> 467 </property> 468 <property name="sizeHint"> 469 <size> 470 <width>40</width> 471 <height>20</height> 472 </size> 473 </property> 474 </spacer> 448 475 </hbox> 449 476 </widget> 450 < spacer>477 <widget class="QCheckBox"> 451 478 <property name="name"> 452 <cstring>spacer22</cstring> 453 </property> 454 <property name="orientation"> 455 <enum>Horizontal</enum> 456 </property> 457 <property name="sizeType"> 458 <enum>Expanding</enum> 459 </property> 460 <property name="sizeHint"> 461 <size> 462 <width>40</width> 463 <height>20</height> 464 </size> 465 </property> 466 </spacer> 467 </hbox> 468 </widget> 469 <widget class="QCheckBox"> 470 <property name="name"> 471 <cstring>chbAutoCapture</cstring> 472 </property> 473 <property name="text"> 474 <string>&Auto capture keyboard</string> 475 </property> 476 <property name="accel"> 477 <string>Alt+A</string> 478 </property> 479 <property name="whatsThis" stdset="0"> 480 <string>When checked, the keyboard is automatically 481 captured every time the VM window is activated.</string> 482 </property> 479 <cstring>chbAutoCapture</cstring> 480 </property> 481 <property name="text"> 482 <string>&Auto capture keyboard</string> 483 </property> 484 <property name="accel"> 485 <string>Alt+A</string> 486 </property> 487 <property name="whatsThis" stdset="0"> 488 <string>When checked, the keyboard is automatically 489 captured every time the VM window is activated. When the keyboard is captured, 490 all keystrokes (including system ones like Alt-Tab) are directed to the VM.</string> 491 </property> 492 </widget> 493 </vbox> 483 494 </widget> 484 495 <spacer> … … 495 506 <size> 496 507 <width>20</width> 497 <height> 120</height>508 <height>40</height> 498 509 </size> 499 510 </property> … … 1017 1028 </forwards> 1018 1029 <variables> 1030 <variable access="private">bool polished;</variable> 1019 1031 <variable access="private">bool valid;</variable> 1020 1032 <variable access="private">QTimer *whatsThisTimer;</variable> … … 1048 1060 <functions> 1049 1061 <function access="private">init()</function> 1062 <function access="protected">showEvent( QShowEvent * )</function> 1050 1063 <function>getFrom( const CSystemProperties & props, const VMGlobalSettings & gs )</function> 1051 1064 <function>putBackTo( CSystemProperties & props, VMGlobalSettings & gs )</function> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h
r704 r711 75 75 void VBoxGlobalSettingsDlg::init() 76 76 { 77 polished = false; 78 77 79 setCaption (tr ("VirtualBox Global Settings")); 78 80 setIcon (QPixmap::fromMimeSource ("global_settings_16px.png")); … … 121 123 6 /* seems that RichText adds some margin */ + 122 124 whatsThisLabel->fontMetrics().lineSpacing() * 3); 125 whatsThisLabel->setMinimumWidth (whatsThisLabel->frameWidth() * 2 + 126 6 /* seems that RichText adds some margin */ + 127 whatsThisLabel->fontMetrics().width ('m') * 40); 123 128 124 129 /* … … 127 132 */ 128 133 129 hkeHostKey = new QIHotKeyEdit( pageKeyboard, "hkeHostKey" ); 130 hkeHostKey->setSizePolicy( 131 QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed )); 134 hkeHostKey = new QIHotKeyEdit (grbKeyboard, "hkeHostKey"); 135 hkeHostKey->setSizePolicy (QSizePolicy (QSizePolicy::Preferred, QSizePolicy::Fixed)); 132 136 QWhatsThis::add (hkeHostKey, 133 137 tr ("Displays the key used as a Host Key in the VM window. Activate the " 134 138 "entry field and press a new Host Key. Note that alphanumeric, " 135 139 "cursor movement and editing keys cannot be used as a Host Key.")); 136 layoutHostKey->addWidget ( hkeHostKey);137 txHostKey->setBuddy ( hkeHostKey);140 layoutHostKey->addWidget (hkeHostKey); 141 txHostKey->setBuddy (hkeHostKey); 138 142 setTabOrder (listView, hkeHostKey); 139 143 … … 240 244 } 241 245 246 void VBoxGlobalSettingsDlg::showEvent (QShowEvent *e) 247 { 248 QDialog::showEvent (e); 249 250 /* one may think that QWidget::polish() is the right place to do things 251 * below, but apparently, by the time when QWidget::polish() is called, 252 * the widget style & layout are not fully done, at least the minimum 253 * size hint is not properly calculated. Since this is sometimes necessary, 254 * we provide our own "polish" implementation. */ 255 256 if (polished) 257 return; 258 259 polished = true; 260 261 /* resize to the miminum possible size */ 262 resize (minimumSize()); 263 264 VBoxGlobal::centerWidget (this, parentWidget()); 265 } 266 242 267 void VBoxGlobalSettingsDlg::listView_currentChanged (QListViewItem *item) 243 268 { -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxUSBFilterSettings.ui
r704 r711 93 93 <hsizetype>5</hsizetype> 94 94 <vsizetype>0</vsizetype> 95 <horstretch> 3</horstretch>95 <horstretch>5</horstretch> 96 96 <verstretch>0</verstretch> 97 97 </sizepolicy> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r704 r711 269 269 6 /* seems that RichText adds some margin */ + 270 270 whatsThisLabel->fontMetrics().lineSpacing() * 3); 271 whatsThisLabel->setMinimumWidth (whatsThisLabel->frameWidth() * 2 + 272 6 /* seems that RichText adds some margin */ + 273 whatsThisLabel->fontMetrics().width ('m') * 40); 271 274 272 275 /*
Note:
See TracChangeset
for help on using the changeset viewer.