FontPickerDialog

Search for usage in LXR

FontPickerDialog Class Reference
Inheritance diagram for FontPickerDialog:

Properties

alias mfont
 
alias model
 
- Properties inherited from SettingsDialog
list< QtObject > content
 

Signals

void accepted (var font)
 

Additional Inherited Members

- Public Member Functions inherited from SettingsDialog
void addPage (component, properties)
 
void open ()
 
- Public Member Functions inherited from QtQuick.Loader
 loaded ()
 
object setSource (url source, object properties)
 

Detailed Description

The Mauikit FontPicker component wrapped inside a popup dialog for convenience.

See also
FontPicker

This controls inherits from MauiKit SettingsDialog, to checkout its inherited properties refer to docs.

The control has two actions predefined: accept and reject/cancel. The cancel action discards changes and closes the dialog, while the accept one emits the accepted(var font) signal with the modified font as the argument.

See also
accepted
Maui.Page
{
anchors.fill: parent
Maui.Controls.showCSD: true
{
anchors.centerIn: parent
text: "Font Picker"
onClicked: _fontPickerDialog.open()
}
Maui.FontPickerDialog
{
id: _fontPickerDialog
}
}

You can find a more complete example at this link.

Definition at line 59 of file FontPickerDialog.qml.

Property Documentation

◆ mfont

font FontPickerDialog::mfont
read

The current font object selected.

Definition at line 65 of file FontPickerDialog.qml.

◆ model

FontModel FontPickerDialog::model
read

An alias to expose the font picker model and its properties.

Remarks
This property is read-only
See also
FontModel

Definition at line 72 of file FontPickerDialog.qml.

Member Function Documentation

◆ accepted

void FontPickerDialog::accepted ( var font)
signal

Emitted when the accepted action/button is triggered.

Parameters
fontThe modified font object.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:16 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.