Changeset 77275 in vbox for trunk/src/VBox
- Timestamp:
- Feb 12, 2019 12:25:20 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerTextEdit.cpp
r77221 r77275 196 196 , m_iMatchCount(0) 197 197 { 198 configure(); 199 prepare(); 200 } 201 202 void UIVMLogViewerTextEdit::configure() 203 { 198 204 setMouseTracking(true); 199 //setStyleSheet("background-color: rgba(240, 240, 240, 75%) "); 200 prepare(); 205 206 /* Prepare modified standard palette: */ 207 QPalette pal = style() ? style()->standardPalette() : palette(); // fallback if no style exist. 208 pal.setColor(QPalette::Inactive, QPalette::Highlight, pal.color(QPalette::Active, QPalette::Highlight)); 209 pal.setColor(QPalette::Inactive, QPalette::HighlightedText, pal.color(QPalette::Active, QPalette::HighlightedText)); 210 setPalette(pal); 211 212 /* Configure this' wrap mode: */ 213 setWrapLines(false); 214 setReadOnly(true); 201 215 } 202 216 … … 220 234 if (pHorizontalScrollBar) 221 235 pHorizontalScrollBar->setStyleSheet(horizontalScrollBarStyle); 222 223 /* Configure this' wrap mode: */224 setWrapLines(false);225 setReadOnly(true);226 236 } 227 237 … … 380 390 QIWithRetranslateUI<QPlainTextEdit>::paintEvent(pEvent); 381 391 382 /* *Draw an overlay with text in it to show the number of search matches: */392 /* Draw an overlay with text in it to show the number of search matches: */ 383 393 if (viewport() && (m_fShowSearchResultOverlay || m_bShownTextIsFiltered)) 384 394 { … … 397 407 strText.append(UIVMLogViewerWidget::tr("Filtered")); 398 408 } 399 /* * Space between the text and rectangle border.*/409 /* Space between the text and rectangle border: */ 400 410 QSize textMargin(5, 5); 401 /* * Space between the rectangle and viewport edges.*/411 /* Space between the rectangle and viewport edges: */ 402 412 QSize rectMargin(2, 2); 403 413 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerTextEdit.h
r77087 r77275 90 90 private: 91 91 92 /** Configures this (such as palette etc.) */ 93 void configure(); 92 94 void prepare(); 93 95 void prepareWidgets();
Note:
See TracChangeset
for help on using the changeset viewer.