| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef TLOGIN_H
- #define TLOGIN_H
- #include <QDialog>
- #include "qpushbutton.h"
- class QLineEdit;
- class QLabel;
- class TLogin : public QDialog
- {
- Q_OBJECT
- public:
- explicit TLogin(QWidget *parent = nullptr);
- void on_login_clicked();
- protected:
- void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- signals:
- void loginSuccessful();
- private:
- QPoint m_dragPosition;
- QPushButton *loginPushButton;
- QLineEdit *usernameEdit;
- QLineEdit *passwordEdit;
- QLabel *info;
- };
- #endif // TLOGIN_H
|