VirtualBox

Ignore:
Timestamp:
Jun 4, 2008 12:00:34 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31613
Message:

FE/Qt4: Initial version of the ported QIRichLabel class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxGlobalSettingsDlg.ui.h

    r9227 r9382  
    302302    whatsThisCandidate = NULL;
    303303
    304     whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");
    305304#warning port me
     305    whatsThisLabel = new QIRichLabel (this);
    306306//    VBoxGlobalSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1);
    307307
     
    314314     * formatting). We want to catch this text because this is how it will look
    315315     * in the whatsthis balloon where we cannot enforce rich text. */
    316     whatsThisLabel->setTextFormat (Qt::RichText);
     316//    whatsThisLabel->setTextFormat (Qt::RichText);
    317317#endif
    318318
    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//
    338338    /*
    339339     *  create and layout non-standard widgets
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette