Initial commit
This commit is contained in:
commit
6238a79854
10 files changed
+1680
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QMessageBox>
|
||||
|
||||
namespace Echoion::Desktop {
|
||||
|
||||
class LoginDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit LoginDialog(QWidget* parent = nullptr);
|
||||
|
||||
[[nodiscard]] QString getUsername() const;
|
||||
[[nodiscard]] QString getPassword() const;
|
||||
|
||||
private slots:
|
||||
void onLoginClicked();
|
||||
void onCancelClicked();
|
||||
|
||||
private:
|
||||
void setupUi();
|
||||
|
||||
QLineEdit* usernameEdit_;
|
||||
QLineEdit* passwordEdit_;
|
||||
QPushButton* loginButton_;
|
||||
QPushButton* cancelButton_;
|
||||
};
|
||||
|
||||
} // namespace Echoion::Desktop
|
||||
Reference in new issue
Block a user