Commit fca1c2f2 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Output Config] Fix transformation matrix for rotation icon

The rotate left/right icons were erroneously mirrored

Differential Revision: https://phabricator.kde.org/D15504
parent 30b9924c
......@@ -117,8 +117,8 @@ void OutputConfig::initUi()
mRotation = new QComboBox(this);
QIcon previewIcon = QIcon::fromTheme(QStringLiteral("view-preview"));
QPixmap previewPixmap = previewIcon.pixmap(mRotation->iconSize());
QIcon previewRotatedCounterClockwise = QIcon(previewPixmap.transformed(QMatrix(0.0, 1.0, 1.0, 0.0, 0.0, 0.0)));
QIcon previewRotatedClockwise = QIcon(previewPixmap.transformed(QMatrix(0.0, -1.0, -1.0, 0.0, 0.0, 0.0)));
QIcon previewRotatedCounterClockwise = QIcon(previewPixmap.transformed(QMatrix(0.0, -1.0, 1.0, 0.0, 0.0, 0.0)));
QIcon previewRotatedClockwise = QIcon(previewPixmap.transformed(QMatrix(0.0, 1.0, -1.0, 0.0, 0.0, 0.0)));
QIcon previewRotatedUpSideDown = QIcon(previewPixmap.transformed(QMatrix(-1.0, 0.0, 0.0, -1.0, 0.0, 0.0)));
mRotation->addItem(previewIcon, i18n("No Rotation"), KScreen::Output::None);
mRotation->addItem(previewRotatedClockwise, i18n("90° Clockwise"), KScreen::Output::Right);
......
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