8#ifndef K_FONT_CHOOSER_H
9#define K_FONT_CHOOSER_H
13#include <kwidgetsaddons_export.h>
37 Q_PROPERTY(
QFont font READ font WRITE setFont NOTIFY fontSelected USER
true)
39 Q_PROPERTY(
QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
61 AllFontDiffs = FontDiffFamily | FontDiffStyle | FontDiffSize,
119 void enableColumn(
int column,
bool state);
128 void setFont(
const QFont &font,
bool onlyFixed =
false);
143 void setColor(
const QColor &col);
154 void setBackgroundColor(
const QColor &col);
160 QColor backgroundColor()
const;
173 void setSampleText(
const QString &text);
179 void setSampleBoxVisible(
bool visible);
188 FixedWidthFonts = 0x01,
194 ScalableFonts = 0x02,
200 SmoothScalableFonts = 0x04
211 static QStringList createFontList(uint fontListCriteria);
226 void setFontListItems(
const QStringList &fontList);
235 void setMinVisibleItems(
int visibleItems);
249 std::unique_ptr<class KFontChooserPrivate>
const d;
FontColumn
Displayed columns.
~KFontChooser() override
Destructor.
FontListCriteria
The selection criteria for the font families shown in the dialog.
DisplayFlag
Flags for selecting what is displayed in the widget.
void fontSelected(const QFont &font)
Emitted when the selected font changes.
FontDiff
Flags for selecting which font attributes to change.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:05:10 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.