Made Mac buttons the same layout as Windows ones

This commit is contained in:
Xinyu Hou 2014-11-20 14:28:08 +00:00
parent e71e7e1cd3
commit 40ef0b03c2
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ AddClientDialog::AddClientDialog(const QString& clientName, QWidget* parent) :
m_pLabelCenter->setPixmap(QPixmap(":res/icons/64x64/video-display.png")); m_pLabelCenter->setPixmap(QPixmap(":res/icons/64x64/video-display.png"));
gridLayout->addWidget(m_pLabelCenter, 2, 1, 1, 1, Qt::AlignCenter); 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", QPushButton* advanced = m_pDialogButtonBox->addButton("Advanced",
QDialogButtonBox::HelpRole); QDialogButtonBox::HelpRole);
connect(advanced, SIGNAL(clicked()), this, SLOT(handleButtonAdvanced())); connect(advanced, SIGNAL(clicked()), this, SLOT(handleButtonAdvanced()));