CCIMXDesktop
 
Loading...
Searching...
No Matches
LabelStyleReader Class Reference

Provides static methods to read style information from QLabel widgets. More...

#include <LabelStyleReader.h>

Static Public Member Functions

static QFont font (const QLabel *label)
 Gets the font used in the label.
 
static int fontSize (const QLabel *label)
 Gets the font size of the label in points.
 
static QColor textColor (const QLabel *label)
 Gets the text color of the label.
 

Detailed Description

Provides static methods to read style information from QLabel widgets.

This includes reading font, font size, and text color from a QLabel.

Member Function Documentation

◆ font()

QFont LabelStyleReader::font ( const QLabel *  label)
static

Gets the font used in the label.

Parameters
labelPointer to the QLabel.
Returns
The QFont applied to the label.

◆ fontSize()

int LabelStyleReader::fontSize ( const QLabel *  label)
static

Gets the font size of the label in points.

Parameters
labelPointer to the QLabel.
Returns
Font size in points.

◆ textColor()

QColor LabelStyleReader::textColor ( const QLabel *  label)
static

Gets the text color of the label.

Parameters
labelPointer to the QLabel.
Returns
The QColor used for the label's text.

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