Changeset 9382 in vbox for trunk/src/VBox/Frontends/VirtualBox4/ui
- Timestamp:
- Jun 4, 2008 12:00:34 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31613
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsDlg.ui.h
r9227 r9382 302 302 whatsThisCandidate = NULL; 303 303 304 whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");305 304 #warning port me 305 whatsThisLabel = new QIRichLabel (this); 306 306 // VBoxGlobalSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1); 307 307 … … 314 314 * formatting). We want to catch this text because this is how it will look 315 315 * in the whatsthis balloon where we cannot enforce rich text. */ 316 whatsThisLabel->setTextFormat (Qt::RichText);316 // whatsThisLabel->setTextFormat (Qt::RichText); 317 317 #endif 318 318 319 whatsThisLabel->setMaxHeightMode (true);320 whatsThisLabel->setFocusPolicy (Qt::NoFocus);321 whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed);322 whatsThisLabel->setBackgroundMode (Qt::PaletteMidlight);323 whatsThisLabel->setFrameShape (QLabel::Box);324 whatsThisLabel->setFrameShadow (QLabel::Sunken);325 whatsThisLabel->setMargin (7);326 whatsThisLabel->setScaledContents (FALSE);327 whatsThisLabel->setAlignment (int (Qt::TextWordWrap |328 Qt::AlignJustify |329 Qt::AlignTop));330 331 whatsThisLabel->setFixedHeight (whatsThisLabel->frameWidth() * 2 +332 6 /* seems that RichText adds some margin */ +333 whatsThisLabel->fontMetrics().lineSpacing() * 4);334 whatsThisLabel->setMinimumWidth (whatsThisLabel->frameWidth() * 2 +335 6 /* seems that RichText adds some margin */ +336 whatsThisLabel->fontMetrics().width ('m') * 40);337 319 // whatsThisLabel->setMaxHeightMode (true); 320 // whatsThisLabel->setFocusPolicy (Qt::NoFocus); 321 // whatsThisLabel->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Fixed); 322 // whatsThisLabel->setBackgroundMode (Qt::PaletteMidlight); 323 // whatsThisLabel->setFrameShape (QLabel::Box); 324 // whatsThisLabel->setFrameShadow (QLabel::Sunken); 325 // whatsThisLabel->setMargin (7); 326 // whatsThisLabel->setScaledContents (FALSE); 327 // whatsThisLabel->setAlignment (int (Qt::TextWordWrap | 328 // Qt::AlignJustify | 329 // Qt::AlignTop)); 330 // 331 // whatsThisLabel->setFixedHeight (whatsThisLabel->frameWidth() * 2 + 332 // 6 /* seems that RichText adds some margin */ + 333 // whatsThisLabel->fontMetrics().lineSpacing() * 4); 334 // whatsThisLabel->setMinimumWidth (whatsThisLabel->frameWidth() * 2 + 335 // 6 /* seems that RichText adds some margin */ + 336 // whatsThisLabel->fontMetrics().width ('m') * 40); 337 // 338 338 /* 339 339 * create and layout non-standard widgets
Note:
See TracChangeset
for help on using the changeset viewer.