Changeset 86942 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 20, 2020 5:44:04 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 141461
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp
r86921 r86942 1304 1304 1305 1305 QTextCursor highlightCursor(pDocument); 1306 QTextCharFormat colorFormat(highlightCursor.charFormat()); 1306 1307 1307 1308 QTextCursor cursor(pDocument); 1308 1309 cursor.beginEditBlock(); 1309 colorFormat.setBackground(Qt::yellow);1310 1310 for (int i = 0; i < m_matchedCursorPosition.size(); ++i) 1311 1311 { 1312 1312 highlightCursor.setPosition(m_matchedCursorPosition[i]); 1313 1314 QTextCharFormat colorFormat(highlightCursor.charFormat()); 1315 colorFormat.setBackground(Qt::yellow); 1316 1313 1317 highlightCursor.setPosition(m_matchedCursorPosition[i] + iSearchTermLength, QTextCursor::KeepAnchor); 1314 1318 if (!highlightCursor.isNull()) 1315 highlightCursor. mergeCharFormat(colorFormat);1319 highlightCursor.setCharFormat(colorFormat); 1316 1320 } 1317 1321 cursor.endEditBlock();
Note:
See TracChangeset
for help on using the changeset viewer.