LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
LC::Util::FontChooserWidget Class Reference

Provides a widget for choosing a font. More...

#include "fontchooserwidget.h"

+ Inheritance diagram for LC::Util::FontChooserWidget:
+ Collaboration diagram for LC::Util::FontChooserWidget:

Signals

void fontChanged (QFont font)
 Emitted when another font has been chosen. More...
 

Public Member Functions

 FontChooserWidget (QWidget *parent=nullptr)
 Constructs the widget with the given parent. More...
 
QFont GetFont () const
 Returns the currently selected font. More...
 
void SetFont (const QFont &font)
 Sets the currently font to font. More...
 

Detailed Description

Provides a widget for choosing a font.

This widget allows the user to choose a font in the XML settings dialog.

Definition at line 35 of file fontchooserwidget.h.

Constructor & Destructor Documentation

◆ FontChooserWidget()

LC::Util::FontChooserWidget::FontChooserWidget ( QWidget *  parent = nullptr)

Constructs the widget with the given parent.

Parameters
[in]parentThe parent widget.

Definition at line 27 of file fontchooserwidget.cpp.

Member Function Documentation

◆ fontChanged

void LC::Util::FontChooserWidget::fontChanged ( QFont  font)
signal

Emitted when another font has been chosen.

Parameters
[out]fontThe new chosen font.

◆ GetFont()

QFont LC::Util::FontChooserWidget::GetFont ( ) const

Returns the currently selected font.

Returns
The currently chosen font.
See also
SetFont()

Definition at line 38 of file fontchooserwidget.cpp.

◆ SetFont()

void LC::Util::FontChooserWidget::SetFont ( const QFont &  font)

Sets the currently font to font.

Parameters
[in]fontThe font to set the currently chosen one to.
See also
GetFont()

Definition at line 43 of file fontchooserwidget.cpp.


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