Icon tweaks for line edits.

Reviewed-by: Jens Bache-Wiig
This commit is contained in:
con
2010-04-27 19:00:51 +02:00
parent 0284abbd2c
commit 3828d6b263
2 changed files with 1 additions and 1 deletions

View File

@@ -274,7 +274,7 @@ void IconButton::paintEvent(QPaintEvent *)
QPixmap iconpixmap = icon().pixmap(QSize(ICONBUTTON_SIZE, ICONBUTTON_SIZE), QPixmap iconpixmap = icon().pixmap(QSize(ICONBUTTON_SIZE, ICONBUTTON_SIZE),
state, QIcon::Off); state, QIcon::Off);
QRect pixmapRect = QRect(0, 0, iconpixmap.width(), iconpixmap.height()); QRect pixmapRect = QRect(0, 0, iconpixmap.width(), iconpixmap.height());
pixmapRect.moveCenter(rect().translated(0,-1).center()); pixmapRect.moveCenter(rect().center());
if (static_cast<FancyLineEdit*>(parentWidget())->autoHideIcon()) if (static_cast<FancyLineEdit*>(parentWidget())->autoHideIcon())
painter.setOpacity(m_iconOpacity); painter.setOpacity(m_iconOpacity);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

After

Width:  |  Height:  |  Size: 736 B