Changeset 49472 in vbox for trunk/src/VBox
- Timestamp:
- Nov 13, 2013 5:17:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIRichTextLabel.cpp
r45489 r49472 33 33 /* Setup self: */ 34 34 setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed); 35 35 36 /* Setup text-edit: */ 36 37 m_pTextEdit->setReadOnly(true); 37 38 m_pTextEdit->setFocusPolicy(Qt::NoFocus); 38 39 m_pTextEdit->setFrameShape(QFrame::NoFrame); 39 m_pTextEdit->viewport()->setAutoFillBackground(false);40 40 m_pTextEdit->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); 41 41 m_pTextEdit->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored); 42 43 /* Tune text-edit viewport palette: */ 44 m_pTextEdit->viewport()->setAutoFillBackground(false); 45 QPalette pal = m_pTextEdit->viewport()->palette(); 46 pal.setColor(QPalette::Active, QPalette::Text, pal.color(QPalette::Active, QPalette::WindowText)); 47 pal.setColor(QPalette::Inactive, QPalette::Text, pal.color(QPalette::Inactive, QPalette::WindowText)); 48 pal.setColor(QPalette::Disabled, QPalette::Text, pal.color(QPalette::Disabled, QPalette::WindowText)); 49 m_pTextEdit->viewport()->setPalette(pal); 50 42 51 /* Add into parent: */ 43 52 QVBoxLayout *pMainLayout = new QVBoxLayout(this);
Note:
See TracChangeset
for help on using the changeset viewer.