VirtualBox

Changeset 2280 in vbox


Ignore:
Timestamp:
Apr 20, 2007 3:34:36 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
20640
Message:

FE/Qt: Set whatsthis format to RichText in RELEASE builds to avoid margin jumping.

Location:
trunk/src/VBox/Frontends/VirtualBox/ui
Files:
2 edited

Legend:

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

    r2240 r2280  
    291291    whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");
    292292    VBoxGlobalSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1);
     293
     294#ifndef DEBUG
     295    /* Enforce rich text format to avoid jumping margins (margins of plain
     296     * text labels seem to be smaller). We don't do it in the DEBUG builds to
     297     * be able to immediately catch badly formatted text (i.e. text that
     298     * contains HTML tags but doesn't start with <qt> so that Qt isn't able to
     299     * recognize it as rich text and draws all tags as is instead of doing
     300     * formatting). We want to catch this text because this is how it will look
     301     * in the whatsthis balloon where we cannot enforce rich text. */
     302    whatsThisLabel->setTextFormat (Qt::RichText);
     303#endif
    293304
    294305    whatsThisLabel->setFocusPolicy (QWidget::NoFocus);
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h

    r2262 r2280  
    406406    whatsThisLabel = new QIRichLabel (this, "whatsThisLabel");
    407407    VBoxVMSettingsDlgLayout->addWidget (whatsThisLabel, 2, 1);
     408
     409#ifndef DEBUG
     410    /* Enforce rich text format to avoid jumping margins (margins of plain
     411     * text labels seem to be smaller). We don't do it in the DEBUG builds to
     412     * be able to immediately catch badly formatted text (i.e. text that
     413     * contains HTML tags but doesn't start with <qt> so that Qt isn't able to
     414     * recognize it as rich text and draws all tags as is instead of doing
     415     * formatting). We want to catch this text because this is how it will look
     416     * in the whatsthis balloon where we cannot enforce rich text. */
     417    whatsThisLabel->setTextFormat (Qt::RichText);
     418#endif
    408419
    409420    whatsThisLabel->setFocusPolicy (QWidget::NoFocus);
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