Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef QRCODEDIALOG_H | ||
#define QRCODEDIALOG_H | ||
|
||
#include <QDialog> | ||
#include <QImage> | ||
|
||
namespace Ui { | ||
class QRCodeDialog; | ||
} | ||
class OptionsModel; | ||
|
||
class QRCodeDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent = 0); | ||
~QRCodeDialog(); | ||
|
||
void setModel(OptionsModel *model); | ||
|
||
private slots: | ||
void on_lnReqAmount_textChanged(); | ||
void on_lnLabel_textChanged(); | ||
void on_lnMessage_textChanged(); | ||
void on_btnSaveAs_clicked(); | ||
void on_chkReqPayment_toggled(bool fChecked); | ||
|
||
void updateDisplayUnit(); | ||
|
||
private: | ||
Ui::QRCodeDialog *ui; | ||
OptionsModel *model; | ||
QString address; | ||
QImage myImage; | ||
|
||
void genCode(); | ||
QString getURI(); | ||
}; | ||
|
||
#endif // QRCODEDIALOG_H |