We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76924a3 commit 58ef035Copy full SHA for 58ef035
examples/shared/widgetframe/windowbar.cpp
@@ -2,6 +2,7 @@
2
#include "windowbar_p.h"
3
4
#include <QtCore/QDebug>
5
+#include <QtCore/QLocale>
6
#include <QtGui/QtEvents>
7
8
namespace QWK {
@@ -17,6 +18,10 @@ namespace QWK {
17
18
void WindowBarPrivate::init() {
19
Q_Q(WindowBar);
20
layout = new QHBoxLayout();
21
+ if (QLocale::system().textDirection() == Qt::RightToLeft) {
22
+ layout->setDirection(QBoxLayout::RightToLeft);
23
+ }
24
+
25
layout->setContentsMargins(QMargins());
26
layout->setSpacing(0);
27
for (int i = IconButton; i <= CloseButton; ++i) {
0 commit comments