Skip to content
Snippets Groups Projects
Commit ccc3d1e9 authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Fix welcome screen arrows in reverse mode

Task-number: QTCREATORBUG-1134
parent f552831c
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <QtGui/QHeaderView> #include <QtGui/QHeaderView>
#include <QtGui/QMouseEvent> #include <QtGui/QMouseEvent>
#include <QtGui/QResizeEvent> #include <QtGui/QResizeEvent>
#include <QtGui/QImage>
enum { leftContentsMargin = 2, enum { leftContentsMargin = 2,
topContentsMargin = 2, topContentsMargin = 2,
...@@ -193,7 +194,13 @@ void WelcomeModeItemWidget::init(const QPixmap &pix, QLabel *itemLabel, ...@@ -193,7 +194,13 @@ void WelcomeModeItemWidget::init(const QPixmap &pix, QLabel *itemLabel,
0, bottomContentsMargin); 0, bottomContentsMargin);
QLabel *pxLabel = new QLabel; QLabel *pxLabel = new QLabel;
pxLabel->setPixmap(pix); QPixmap pixmap = pix;
if (layoutDirection() == Qt::RightToLeft){
QImage image = pixmap.toImage();
pixmap = QPixmap::fromImage(image.mirrored(1, 0));
}
pxLabel->setPixmap(pixmap);
pxLabel->setFixedWidth(pixmapWidth); pxLabel->setFixedWidth(pixmapWidth);
hBoxLayout->addWidget(pxLabel); hBoxLayout->addWidget(pxLabel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment