Made Mac buttons the same layout as Windows ones
This commit is contained in:
parent
e71e7e1cd3
commit
40ef0b03c2
|
@ -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()));
|
||||||
|
|
Loading…
Reference in New Issue