Fixed the background of the icon in the search input

It was opaque, whereas now it adapts better with varying background
colors.
(cherry picked from commit 6bb5358abc)
This commit is contained in:
Thorbjørn Lindeijer
2009-09-01 14:27:35 +02:00
committed by con
parent 7a5872b5cd
commit 2b23381406

View File

@@ -460,20 +460,20 @@ void FindToolBar::updateIcons()
bool wholewords = effectiveFlags & IFindSupport::FindWholeWords;
bool regexp = effectiveFlags & IFindSupport::FindRegularExpression;
QPixmap pixmap(17, 17);
pixmap.fill(Qt::transparent);
QPainter painter(&pixmap);
painter.eraseRect(0, 0, 17, 17);
int x = 16;
if (casesensitive) {
painter.drawPixmap(x-10, 0, m_casesensitiveIcon);
painter.drawPixmap(x - 10, 0, m_casesensitiveIcon);
x -= 6;
}
if (wholewords) {
painter.drawPixmap(x-10, 0, m_wholewordsIcon);
painter.drawPixmap(x - 10, 0, m_wholewordsIcon);
x -= 6;
}
if (regexp) {
painter.drawPixmap(x-10, 0, m_regexpIcon);
painter.drawPixmap(x - 10, 0, m_regexpIcon);
}
if (!casesensitive && !wholewords && !regexp) {
QPixmap mag(Core::Constants::ICON_MAGNIFIER);