From 40ef0b03c2494234ebe965e5db3867ee30badc5d Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Thu, 20 Nov 2014 14:28:08 +0000 Subject: [PATCH] Made Mac buttons the same layout as Windows ones --- src/gui/src/AddClientDialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/src/AddClientDialog.cpp b/src/gui/src/AddClientDialog.cpp index dcfe479d..9b75368d 100644 --- a/src/gui/src/AddClientDialog.cpp +++ b/src/gui/src/AddClientDialog.cpp @@ -63,6 +63,10 @@ AddClientDialog::AddClientDialog(const QString& clientName, QWidget* parent) : m_pLabelCenter->setPixmap(QPixmap(":res/icons/64x64/video-display.png")); gridLayout->addWidget(m_pLabelCenter, 2, 1, 1, 1, Qt::AlignCenter); +#if defined(Q_OS_MAC) + m_pDialogButtonBox->setLayoutDirection(Qt::RightToLeft); +#endif + QPushButton* advanced = m_pDialogButtonBox->addButton("Advanced", QDialogButtonBox::HelpRole); connect(advanced, SIGNAL(clicked()), this, SLOT(handleButtonAdvanced()));