Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
BarWidget Class Reference

#include <bar_widget.h>

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

Public Member Functions

 BarWidget (QString label, int value, int total, QColor barColor=Qt::blue, QWidget *parent=nullptr)
QSize sizeHint () const override

Protected Member Functions

void paintEvent (QPaintEvent *event) override

Private Attributes

QString label
int value
int total
QColor barColor

Constructor & Destructor Documentation

◆ BarWidget()

BarWidget::BarWidget ( QString label,
int value,
int total,
QColor barColor = Qt::blue,
QWidget * parent = nullptr )
explicit

Member Function Documentation

◆ paintEvent()

void BarWidget::paintEvent ( QPaintEvent * event)
overrideprotected

◆ sizeHint()

QSize BarWidget::sizeHint ( ) const
override

Member Data Documentation

◆ barColor

QColor BarWidget::barColor
private

◆ label

QString BarWidget::label
private

◆ total

int BarWidget::total
private

◆ value

int BarWidget::value
private

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