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

#include <dynamic_font_size_label.h>

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

Signals

void clicked ()

Public Member Functions

 DynamicFontSizeLabel (QWidget *parent=NULL, Qt::WindowFlags f=Qt::WindowFlags())
 ~DynamicFontSizeLabel ()
void setTextColor (QColor color)
QColor getTextColor ()
void setTextAndColor (const QString &text, QColor color=QColor::Invalid)
QSize minimumSizeHint () const
QSize sizeHint () const

Static Public Member Functions

static float getWidgetMaximumFontSize (QWidget *widget, const QString &text)

Protected Member Functions

void mousePressEvent (QMouseEvent *event)
void paintEvent (QPaintEvent *event)

Protected Attributes

QColor textColor

Constructor & Destructor Documentation

◆ DynamicFontSizeLabel()

DynamicFontSizeLabel::DynamicFontSizeLabel ( QWidget * parent = NULL,
Qt::WindowFlags f = Qt::WindowFlags() )
explicit

◆ ~DynamicFontSizeLabel()

DynamicFontSizeLabel::~DynamicFontSizeLabel ( )
inline

Member Function Documentation

◆ clicked

void DynamicFontSizeLabel::clicked ( )
signal
Here is the caller graph for this function:

◆ getTextColor()

QColor DynamicFontSizeLabel::getTextColor ( )

◆ getWidgetMaximumFontSize()

float DynamicFontSizeLabel::getWidgetMaximumFontSize ( QWidget * widget,
const QString & text )
static
Here is the caller graph for this function:

◆ minimumSizeHint()

QSize DynamicFontSizeLabel::minimumSizeHint ( ) const

◆ mousePressEvent()

void DynamicFontSizeLabel::mousePressEvent ( QMouseEvent * event)
protected
Here is the call graph for this function:

◆ paintEvent()

void DynamicFontSizeLabel::paintEvent ( QPaintEvent * event)
protected
Here is the call graph for this function:

◆ setTextAndColor()

void DynamicFontSizeLabel::setTextAndColor ( const QString & text,
QColor color = QColor::Invalid )
Here is the call graph for this function:

◆ setTextColor()

void DynamicFontSizeLabel::setTextColor ( QColor color)
Here is the caller graph for this function:

◆ sizeHint()

QSize DynamicFontSizeLabel::sizeHint ( ) const

Member Data Documentation

◆ textColor

QColor DynamicFontSizeLabel::textColor
protected

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