tlogin.h 555 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef TLOGIN_H
  2. #define TLOGIN_H
  3. #include <QDialog>
  4. #include "qpushbutton.h"
  5. class QLineEdit;
  6. class QLabel;
  7. class TLogin : public QDialog
  8. {
  9. Q_OBJECT
  10. public:
  11. explicit TLogin(QWidget *parent = nullptr);
  12. void on_login_clicked();
  13. protected:
  14. void mousePressEvent(QMouseEvent *event);
  15. void mouseMoveEvent(QMouseEvent *event);
  16. signals:
  17. void loginSuccessful();
  18. private:
  19. QPoint m_dragPosition;
  20. QPushButton *loginPushButton;
  21. QLineEdit *usernameEdit;
  22. QLineEdit *passwordEdit;
  23. QLabel *info;
  24. };
  25. #endif // TLOGIN_H