forked from qt-creator/qt-creator
Remove left over code, state is unused since 6dc4a0
Change-Id: Ic44c62fceb64c07f1a1af6e7c8644ab526f03269 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
committed by
Eike Ziller
parent
24156ef77e
commit
48f71a715a
@@ -299,11 +299,6 @@ IconButton::IconButton(QWidget *parent)
|
||||
void IconButton::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QPainter painter(this);
|
||||
// Note isDown should really use the active state but in most styles
|
||||
// this has no proper feedback
|
||||
QIcon::Mode state = QIcon::Disabled;
|
||||
if (isEnabled())
|
||||
state = isDown() ? QIcon::Selected : QIcon::Normal;
|
||||
QRect pixmapRect = QRect(0, 0, m_pixmap.width(), m_pixmap.height());
|
||||
pixmapRect.moveCenter(rect().center());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user