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