VirtualBox

Changeset 70592 in vbox


Ignore:
Timestamp:
Jan 15, 2018 2:34:05 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120297
Message:

FE/Qt: bugref:9072: Set search selection colors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerTextEdit.cpp

    r70589 r70592  
    181181        pHorizontalScrollBar->setStyleSheet(horizontalScrollBarStyle);
    182182
     183    /* Configure this' wrap mode: */
     184    setWordWrapMode(QTextOption::NoWrap);
     185    setWordWrapMode(QTextOption::NoWrap);
     186    setReadOnly(true);
     187    /* Set colors to have a selection with bluebackground and white foreground: */
     188    QPalette mPalette = palette();
     189    mPalette.setColor(QPalette::Highlight, QColor(48, 140, 198, 255));
     190    mPalette.setColor(QPalette::HighlightedText, QColor(255, 255, 255, 255));
     191    setPalette(mPalette);
    183192
    184193#if defined(RT_OS_SOLARIS)
     
    190199#endif
    191200    setFont(font);
    192     setWordWrapMode(QTextOption::NoWrap);
    193     setWordWrapMode(QTextOption::NoWrap);
    194     setReadOnly(true);
    195201    if (m_pLineNumberArea)
    196202        m_pLineNumberArea->setFont(font);
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