Files
thehub/hub-qt/receiverequestdialog.h
T

85 lines
1.9 KiB
C++
Raw Permalink Normal View History

2017-11-09 19:34:51 +01:00
/*
* This file is part of the Flowee project
* Copyright (C) 2011-2015 The Bitcoin Core developers
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2013-11-04 16:20:43 +01:00
2018-01-16 10:47:52 +00:00
#ifndef FLOWEE_QT_RECEIVEREQUESTDIALOG_H
#define FLOWEE_QT_RECEIVEREQUESTDIALOG_H
#include "walletmodel.h"
#include <QDialog>
#include <QImage>
#include <QLabel>
class OptionsModel;
namespace Ui {
2013-10-16 15:14:26 +02:00
class ReceiveRequestDialog;
}
QT_BEGIN_NAMESPACE
class QMenu;
QT_END_NAMESPACE
/* Label widget for QR code. This image can be dragged, dropped, copied and saved
* to disk.
*/
class QRImageWidget : public QLabel
{
Q_OBJECT
public:
explicit QRImageWidget(QWidget *parent = 0);
QImage exportImage();
2015-07-14 13:59:05 +02:00
public Q_SLOTS:
void saveImage();
void copyImage();
protected:
virtual void mousePressEvent(QMouseEvent *event);
virtual void contextMenuEvent(QContextMenuEvent *event);
private:
QMenu *contextMenu;
};
2013-10-16 15:14:26 +02:00
class ReceiveRequestDialog : public QDialog
{
Q_OBJECT
public:
explicit ReceiveRequestDialog(QWidget *parent = 0);
2013-10-16 15:14:26 +02:00
~ReceiveRequestDialog();
2012-06-24 18:28:05 +02:00
void setModel(OptionsModel *model);
void setInfo(const SendCoinsRecipient &info);
2015-07-14 13:59:05 +02:00
private Q_SLOTS:
void on_btnCopyURI_clicked();
void on_btnCopyAddress_clicked();
2012-06-24 18:28:05 +02:00
void update();
private:
2013-10-16 15:14:26 +02:00
Ui::ReceiveRequestDialog *ui;
2012-06-24 18:28:05 +02:00
OptionsModel *model;
SendCoinsRecipient info;
};
2018-01-16 10:47:52 +00:00
#endif