Use the canonical file name also for the "already open" check
[GPXSee.git] / src / GUI / authenticationwidget.cpp
blob37e8c369654b14de2cd421a27fc46cf477adf80c
1 #include <QFormLayout>
2 #include "authenticationwidget.h"
4 AuthenticationWidget::AuthenticationWidget(QWidget *parent) : QWidget(parent)
6 _username = new QLineEdit();
7 _password = new PasswordEdit();
8 #ifdef Q_OS_MAC
9 /* A hack to fix the issue with different field sizes on Mac */
10 _username->setMinimumWidth(150);
11 _password->setMinimumWidth(150);
12 #endif // Q_OS_MAC
14 QFormLayout *layout = new QFormLayout();
15 layout->addRow(tr("Username:"), _username);
16 layout->addRow(tr("Password:"), _password);
17 layout->setContentsMargins(0, 0, 0, 0);
19 setLayout(layout);