Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
receiverequestdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef QRCODEDIALOG_H
6 #define QRCODEDIALOG_H
7 
8 #include "walletmodel.h"
9 
10 #include <QDialog>
11 #include <QImage>
12 #include <QLabel>
13 
14 namespace Ui {
16 }
17 class OptionsModel;
18 QT_BEGIN_NAMESPACE
19 class QMenu;
20 QT_END_NAMESPACE
21 
22 /* Label widget for QR code. This image can be dragged, dropped, copied and saved
23  * to disk.
24  */
25 class QRImageWidget : public QLabel
26 {
27  Q_OBJECT
28 
29 public:
30  explicit QRImageWidget(QWidget *parent = 0);
31  QImage exportImage();
32 
33 public slots:
34  void saveImage();
35  void copyImage();
36 
37 protected:
38  virtual void mousePressEvent(QMouseEvent *event);
39  virtual void contextMenuEvent(QContextMenuEvent *event);
40 
41 private:
42  QMenu *contextMenu;
43 };
44 
46 {
47  Q_OBJECT
48 
49 public:
50  explicit ReceiveRequestDialog(QWidget *parent = 0);
52 
54  void setInfo(const SendCoinsRecipient &info);
55 
56 private slots:
57  void on_btnCopyURI_clicked();
59 
60  void update();
61 
62 private:
66 };
67 
68 #endif // QRCODEDIALOG_H
QRImageWidget(QWidget *parent=0)
Ui::ReceiveRequestDialog * ui
SendCoinsRecipient info
ReceiveRequestDialog(QWidget *parent=0)
void setInfo(const SendCoinsRecipient &info)
virtual void contextMenuEvent(QContextMenuEvent *event)
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:20
virtual void mousePressEvent(QMouseEvent *event)
void setModel(OptionsModel *model)