Commit 33b1826a authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

QTransform::rotate operates on the given object, no need to reassign to self

GIT_SILENT
parent 92672390
......@@ -181,9 +181,9 @@ void IdealToolButton::paintEvent(QPaintEvent *event)
QPixmap ic = icon().pixmap(option.iconSize, iconMode, QIcon::On);
QTransform tf;
if(_area == Qt::LeftDockWidgetArea) {
tf = tf.rotate(90);
tf.rotate(90);
} else {
tf = tf.rotate(-90);
tf.rotate(-90);
}
option.icon = ic.transformed( tf, Qt::SmoothTransformation );
painter.drawControl(QStyle::CE_ToolButtonLabel, option);
......
Markdown is supported
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