diff options
author | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 19:32:25 +0200 |
---|---|---|
committer | Lubos Dolezel <lubos@dolezel.info> | 2015-06-02 19:32:25 +0200 |
commit | ab83223e1b5c7d34855d091e0c868462bd9452d1 (patch) | |
tree | 0890102c34727fcceea3d4e4c89ca560988b7f6d /src/gui/diamondcardprofileform.h | |
parent | aa9b140a7bb49eb9666678bcbbb544cc536bd6de (diff) | |
download | twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.gz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.lz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.tar.xz twinkle-ab83223e1b5c7d34855d091e0c868462bd9452d1.zip |
Twinkle now compiles with Qt4 uic, but crashes at runtime (due to GUI calls from outside the main thread)
Diffstat (limited to 'src/gui/diamondcardprofileform.h')
-rw-r--r-- | src/gui/diamondcardprofileform.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/gui/diamondcardprofileform.h b/src/gui/diamondcardprofileform.h new file mode 100644 index 0000000..48224c9 --- /dev/null +++ b/src/gui/diamondcardprofileform.h @@ -0,0 +1,46 @@ +#ifndef DIAMONDCARDPROFILEFORM_H +#define DIAMONDCARDPROFILEFORM_H +#include <QLabel> +#include <QLineEdit> +#include "user.h" +#include "ui_diamondcardprofileform.h" + +class DiamondcardProfileForm : public QDialog, public Ui::DiamondcardProfileForm +{ + Q_OBJECT + +public: + DiamondcardProfileForm(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0); + ~DiamondcardProfileForm(); + + virtual int exec( t_user * user ); + +public slots: + virtual void destroyOldUserConfig(); + virtual void show( t_user * user ); + virtual void validate(); + virtual void mouseReleaseEvent( QMouseEvent * e ); + virtual void processLeftMouseButtonRelease( QMouseEvent * e ); + +signals: + void success(); + void newDiamondcardProfile(const QString&); + +protected slots: + virtual void languageChange(); + +private: + t_user *user_config; + bool destroy_user_config; + QLineEdit *accountIdLineEdit; + QLineEdit *pinCodeLineEdit; + QLineEdit *nameLineEdit; + QLabel *signUpTextLabel; + + void init(); + void destroy(); + +}; + + +#endif |