mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
parent
f0d49e4f69
commit
ea4bd7193a
@ -275,8 +275,7 @@ const Proposal* ProposalModel::getProposalAt(const QModelIndex& index) const
|
|||||||
|
|
||||||
GovernanceList::GovernanceList(QWidget* parent) :
|
GovernanceList::GovernanceList(QWidget* parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::GovernanceList),
|
ui(std::make_unique<Ui::GovernanceList>()),
|
||||||
clientModel(nullptr),
|
|
||||||
proposalModel(new ProposalModel(this)),
|
proposalModel(new ProposalModel(this)),
|
||||||
proposalModelProxy(new QSortFilterProxyModel(this)),
|
proposalModelProxy(new QSortFilterProxyModel(this)),
|
||||||
proposalContextMenu(new QMenu(this)),
|
proposalContextMenu(new QMenu(this)),
|
||||||
@ -321,10 +320,7 @@ GovernanceList::GovernanceList(QWidget* parent) :
|
|||||||
GUIUtil::updateFonts();
|
GUIUtil::updateFonts();
|
||||||
}
|
}
|
||||||
|
|
||||||
GovernanceList::~GovernanceList()
|
GovernanceList::~GovernanceList() = default;
|
||||||
{
|
|
||||||
delete ui;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GovernanceList::setClientModel(ClientModel* model)
|
void GovernanceList::setClientModel(ClientModel* model)
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ public:
|
|||||||
float paymentAmount() const;
|
float paymentAmount() const;
|
||||||
QString url() const;
|
QString url() const;
|
||||||
bool isActive() const;
|
bool isActive() const;
|
||||||
QString votingStatus(const int nAbsVoteReq) const;
|
QString votingStatus(int nAbsVoteReq) const;
|
||||||
int GetAbsoluteYesCount() const;
|
int GetAbsoluteYesCount() const;
|
||||||
|
|
||||||
void openUrl() const;
|
void openUrl() const;
|
||||||
@ -96,9 +96,9 @@ public:
|
|||||||
void setClientModel(ClientModel* clientModel);
|
void setClientModel(ClientModel* clientModel);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ClientModel* clientModel;
|
ClientModel* clientModel{nullptr};
|
||||||
|
|
||||||
Ui::GovernanceList* ui;
|
std::unique_ptr<Ui::GovernanceList> ui;
|
||||||
ProposalModel* proposalModel;
|
ProposalModel* proposalModel;
|
||||||
QSortFilterProxyModel* proposalModelProxy;
|
QSortFilterProxyModel* proposalModelProxy;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user