mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-15 18:09:11 +02:00
Fixed form layout issue on OS X
This commit is contained in:
parent
134129e798
commit
2a7507ff25
@ -5,6 +5,11 @@ AuthenticationWidget::AuthenticationWidget(QWidget *parent) : QWidget(parent)
|
|||||||
{
|
{
|
||||||
_username = new QLineEdit();
|
_username = new QLineEdit();
|
||||||
_password = new PasswordEdit();
|
_password = new PasswordEdit();
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
/* A hack to fix the issue with different field sizes on Mac */
|
||||||
|
_username->setMinimumWidth(150);
|
||||||
|
_password->setMinimumWidth(150);
|
||||||
|
#endif // Q_OS_MAC
|
||||||
|
|
||||||
QFormLayout *layout = new QFormLayout();
|
QFormLayout *layout = new QFormLayout();
|
||||||
layout->addRow(tr("Username:"), _username);
|
layout->addRow(tr("Username:"), _username);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user