Commit 48f71a71 authored by Daniel Teske's avatar Daniel Teske Committed by Eike Ziller
Browse files

Remove left over code, state is unused since 6dc4a0

Change-Id: Ic44c62fceb64c07f1a1af6e7c8644ab526f03269
Reviewed-by: default avatarEike Ziller <>
parent 24156ef7
......@@ -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());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment