Changeset 83524 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 3, 2020 11:37:46 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136843
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extensions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.cpp
r82968 r83524 29 29 #include "QIArrowSplitter.h" 30 30 #include "QIDialogButtonBox.h" 31 #include "QILabel.h"32 31 #include "QIMessageBox.h" 32 #include "QIRichTextLabel.h" 33 33 #include "UIIconPool.h" 34 34 … … 120 120 void QIMessageBox::polishEvent(QShowEvent *pPolishEvent) 121 121 { 122 /* Tune text-label size: */123 m_pLabelText->useSizeHintForWidth(m_pLabelText->width());124 m_pLabelText->updateGeometry();125 126 122 /* Call to base-class: */ 127 123 QIDialog::polishEvent(pPolishEvent); … … 213 209 } 214 210 /* Create text-label: */ 215 m_pLabelText = new QI Label(m_strMessage);211 m_pLabelText = new QIRichTextLabel; 216 212 AssertPtrReturnVoid(m_pLabelText); 217 213 { 218 214 /* Configure text-label: */ 219 m_pLabelText->setWordWrap(true); 220 m_pLabelText->setAlignment(Qt::AlignLeft | Qt::AlignTop); 221 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum); 222 sizePolicy.setHeightForWidth(true); 223 m_pLabelText->setSizePolicy(sizePolicy); 215 m_pLabelText->setText(m_strMessage); 224 216 /* Add text-label into top-layout: */ 225 217 pTopLayout->addWidget(m_pLabelText); -
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIMessageBox.h
r82968 r83524 35 35 class QIArrowSplitter; 36 36 class QIDialogButtonBox; 37 class QI Label;37 class QIRichTextLabel; 38 38 39 39 … … 167 167 QString m_strMessage; 168 168 /** Holds the message-label instance. */ 169 QI Label *m_pLabelText;169 QIRichTextLabel *m_pLabelText; 170 170 171 171 /** Holds the flag check-box instance. */
Note:
See TracChangeset
for help on using the changeset viewer.