examples/shared/widgetframe/windowbar.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
examples/shared/widgetframe/windowbar.cpp
@@ -2,6 +2,7 @@ #include "windowbar_p.h" #include <QtCore/QDebug> #include <QtCore/QLocale> #include <QtGui/QtEvents> namespace QWK { @@ -17,6 +18,10 @@ void WindowBarPrivate::init() { Q_Q(WindowBar); layout = new QHBoxLayout(); if (QLocale::system().textDirection() == Qt::RightToLeft) { layout->setDirection(QBoxLayout::RightToLeft); } layout->setContentsMargins(QMargins()); layout->setSpacing(0); for (int i = IconButton; i <= CloseButton; ++i) {