Freeciv21
Develop your civilization from humble roots to a global empire
xvote Class Reference

#include <voteinfo_bar.h>

+ Inheritance diagram for xvote:
+ Collaboration diagram for xvote:

Public Member Functions

 xvote (QWidget *parent)
 pregamevote class used for displaying vote bar in PAGE START More...
 
- Public Member Functions inherited from pregamevote
 pregamevote (QWidget *parent=nullptr)
 Constructor for pregamevote. More...
 
 ~pregamevote () override
 Destructor for pregamevote. More...
 
void update_vote ()
 Updates text on vote. More...
 

Protected Member Functions

void paint (QPainter *painter, QPaintEvent *event)
 Paints frames for xvote. More...
 
void paintEvent (QPaintEvent *event) override
 Paint event for xvote. More...
 

Additional Inherited Members

- Public Slots inherited from pregamevote
void v_yes ()
 Slot vote yes. More...
 
void v_no ()
 Slot vote no. More...
 
void v_abstain ()
 Slot vote abstain. More...
 
- Public Attributes inherited from pregamevote
QLabel * label_text
 
QLabel * label_vote_text
 
QPushButton * vote_yes
 
QPushButton * vote_no
 
QPushButton * vote_abstain
 
QLabel * lab_yes
 
QLabel * lab_no
 
QLabel * lab_abstain
 
QLabel * voters
 
QGridLayout * layout
 

Detailed Description

Definition at line 50 of file voteinfo_bar.h.

Constructor & Destructor Documentation

◆ xvote()

xvote::xvote ( QWidget *  parent)

pregamevote class used for displaying vote bar in PAGE START

Definition at line 176 of file voteinfo_bar.cpp.

Member Function Documentation

◆ paint()

void xvote::paint ( QPainter *  painter,
QPaintEvent *  event 
)
protected

Paints frames for xvote.

Definition at line 194 of file voteinfo_bar.cpp.

Referenced by paintEvent().

◆ paintEvent()

void xvote::paintEvent ( QPaintEvent *  event)
overrideprotected

Paint event for xvote.

Definition at line 206 of file voteinfo_bar.cpp.