Workspace 6.21.5
Public Slots | Signals | Public Member Functions | Properties | List of all members
FontButton Class Reference

#include <Workspace/Widgets/fontbutton.h>

Inherits QPushButton.

Public Slots

void setFont (const QFont &f)
 

Signals

void fontChanged (const QFont &f)
 

Public Member Functions

 FontButton (QWidget *parent=nullptr)
 
const QFont & getFont () const
 

Properties

QFont font
 

Constructor & Destructor Documentation

◆ FontButton()

FontButton ( QWidget *  parent = nullptr)

By default the font is Sans Serif 12-point.

Member Function Documentation

◆ fontChanged

void fontChanged ( const QFont &  f)
signal

◆ getFont()

const QFont & getFont ( ) const
Returns
The font represented by the button.

◆ setFont

void setFont ( const QFont &  f)
slot
Parameters
fThe new font to assign to the button.

Property Documentation

◆ font

QFont font
readwrite