PIVX Core  5.6.99
P2P Digital Currency
proposalinfodialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_PROPOSALINFODIALOG_H
6 #define PIVX_QT_PROPOSALINFODIALOG_H
7 
8 #include "focuseddialog.h"
9 #include "governancemodel.h"
10 
11 struct ProposalInfo;
12 class SnackBar;
13 class WalletModel;
14 
15 namespace Ui {
16 class ProposalInfoDialog;
17 }
18 
20 {
21  Q_OBJECT
22 
23 public:
24  explicit ProposalInfoDialog(QWidget *parent = nullptr);
26  void setProposal(const ProposalInfo& info);
27 
28 public Q_SLOTS:
29  void accept() override;
30  void reject() override;
31 
32 private:
33  Ui::ProposalInfoDialog* ui;
34  SnackBar* snackBar{nullptr};
36 
37  void inform(const QString& msg);
38 };
39 
40 #endif // PIVX_QT_PROPOSALINFODIALOG_H
void inform(const QString &msg)
Ui::ProposalInfoDialog * ui
void accept() override
void reject() override
ProposalInfoDialog(QWidget *parent=nullptr)
void setProposal(const ProposalInfo &info)
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109