1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00
GPXSee/src/GUI/authenticationwidget.cpp

21 lines
566 B
C++

#include <QFormLayout>
#include "authenticationwidget.h"
AuthenticationWidget::AuthenticationWidget(QWidget *parent) : QWidget(parent)
{
_username = new QLineEdit();
_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();
layout->addRow(tr("Username:"), _username);
layout->addRow(tr("Password:"), _password);
layout->setContentsMargins(0, 0, 0, 0);
setLayout(layout);
}