PIVX Core  5.6.99
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProposalCard Class Reference

#include <proposalcard.h>

Inheritance diagram for ProposalCard:
[legend]
Collaboration diagram for ProposalCard:
[legend]

Public Slots

void onCopyUrlClicked ()
 

Signals

void voteClicked (const ProposalInfo &proposalInfo)
 
void inform (const QString &text)
 
void onMenuClicked (ProposalCard *card)
 

Public Member Functions

 ProposalCard (QWidget *parent=nullptr)
 
 ~ProposalCard () override
 
void setProposal (const ProposalInfo &_proposalInfo)
 
ProposalInfo getProposal ()
 
void setNeedsUpdate (bool _update)
 
bool isUpdateNeeded () const
 

Private Member Functions

void setStatusAndVotes (const QString &msg, int value)
 

Private Attributes

Ui::ProposalCard * ui
 
ProposalInfo proposalInfo
 
bool needsUpdate {false}
 

Detailed Description

Definition at line 17 of file proposalcard.h.

Constructor & Destructor Documentation

◆ ProposalCard()

ProposalCard::ProposalCard ( QWidget *  parent = nullptr)
explicit

Definition at line 10 of file proposalcard.cpp.

Here is the call graph for this function:

◆ ~ProposalCard()

ProposalCard::~ProposalCard ( )
override

Definition at line 86 of file proposalcard.cpp.

Member Function Documentation

◆ getProposal()

ProposalInfo ProposalCard::getProposal ( )
inline

Definition at line 26 of file proposalcard.h.

Here is the caller graph for this function:

◆ inform

void ProposalCard::inform ( const QString &  text)
signal
Here is the caller graph for this function:

◆ isUpdateNeeded()

bool ProposalCard::isUpdateNeeded ( ) const
inline

Definition at line 30 of file proposalcard.h.

Here is the caller graph for this function:

◆ onCopyUrlClicked

void ProposalCard::onCopyUrlClicked ( )
slot

Definition at line 81 of file proposalcard.cpp.

Here is the caller graph for this function:

◆ onMenuClicked

void ProposalCard::onMenuClicked ( ProposalCard card)
signal
Here is the caller graph for this function:

◆ setNeedsUpdate()

void ProposalCard::setNeedsUpdate ( bool  _update)
inline

Definition at line 29 of file proposalcard.h.

Here is the caller graph for this function:

◆ setProposal()

void ProposalCard::setProposal ( const ProposalInfo _proposalInfo)

Definition at line 37 of file proposalcard.cpp.

Here is the call graph for this function:

◆ setStatusAndVotes()

void ProposalCard::setStatusAndVotes ( const QString &  msg,
int  value 
)
private

Definition at line 75 of file proposalcard.cpp.

Here is the caller graph for this function:

◆ voteClicked

void ProposalCard::voteClicked ( const ProposalInfo proposalInfo)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ needsUpdate

bool ProposalCard::needsUpdate {false}
private

Definition at line 43 of file proposalcard.h.

◆ proposalInfo

ProposalInfo ProposalCard::proposalInfo
private

Definition at line 42 of file proposalcard.h.

◆ ui

Ui::ProposalCard* ProposalCard::ui
private

Definition at line 41 of file proposalcard.h.


The documentation for this class was generated from the following files: