Mercurial: Inline authenticationdialog.ui

Change-Id: I235c8aaf7d2dd8e49e8a22b81523a322b5f596bc
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2022-10-04 10:10:58 +02:00
parent 8d80623a0f
commit 1f5eb9e62f
5 changed files with 43 additions and 118 deletions

View File

@@ -5,10 +5,11 @@
#include <QDialog>
namespace Mercurial {
namespace Internal {
QT_BEGIN_NAMESPACE
class QLineEdit;
QT_END_NAMESPACE
namespace Ui { class AuthenticationDialog; }
namespace Mercurial::Internal {
class AuthenticationDialog : public QDialog
{
@@ -18,13 +19,14 @@ public:
explicit AuthenticationDialog(const QString &username, const QString &password,
QWidget *parent = nullptr);
~AuthenticationDialog() override;
void setPasswordEnabled(bool enabled);
QString getUserName();
QString getPassword();
private:
Ui::AuthenticationDialog *ui;
QLineEdit *m_username;
QLineEdit *m_password;
};
} // namespace Internal
} // namespace Mercurial
} // Mercurial::Internal