fix find scope scelection, special case empty overlay selections

This commit is contained in:
mae
2009-12-02 14:12:59 +01:00
parent 89693f6347
commit 8c4ede6be4
3 changed files with 91 additions and 67 deletions

View File

@@ -2097,6 +2097,7 @@ void BaseTextEditor::paintEvent(QPaintEvent *e)
TextEditorOverlay *overlay = new TextEditorOverlay(this);
overlay->addOverlaySelection(d->m_findScope, d->m_searchScopeFormat.background().color().darker(120),
d->m_searchScopeFormat.background().color());
overlay->setAlpha(false);
overlay->paint(&painter, e->rect());
delete overlay;
}