2 #include "authenticationwidget.h"
4 AuthenticationWidget::AuthenticationWidget(QWidget
*parent
) : QWidget(parent
)
6 _username
= new QLineEdit();
7 _password
= new PasswordEdit();
9 /* A hack to fix the issue with different field sizes on Mac */
10 _username
->setMinimumWidth(150);
11 _password
->setMinimumWidth(150);
14 QFormLayout
*layout
= new QFormLayout();
15 layout
->addRow(tr("Username:"), _username
);
16 layout
->addRow(tr("Password:"), _password
);
17 layout
->setContentsMargins(0, 0, 0, 0);