FontButton Class Reference

A button widget designed to select a font. More...

#include <fontbutton.h>

+ Inheritance diagram for FontButton:

Signals

void fontUpdated (QFont oldFont, const QFont &newFont)
 

Public Member Functions

 FontButton (QWidget *parent=nullptr)
 
const QFont & selectedFont () const
 
void setSelectedFont (const QFont &font)
 

Protected Slots

void thisClicked ()
 

Protected Member Functions

void updateAppearance ()
 
void updateFont (const QFont &newFont)
 Will always emit fontUpdated() signal.
 

Protected Attributes

QFont currentFont
 

Detailed Description

A button widget designed to select a font.

The principal of working is the same as ColorButton.

Definition at line 33 of file fontbutton.h.

Member Function Documentation

void FontButton::updateFont ( const QFont &  newFont)
protected

Will always emit fontUpdated() signal.

Definition at line 58 of file fontbutton.cpp.


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