20 #ifndef KFONTREQUESTER_H
21 #define KFONTREQUESTER_H
27 #include <kdelibs_export.h>
48 Q_PROPERTY( TQString title READ title WRITE setTitle )
49 Q_PROPERTY( TQString sampleText READ sampleText WRITE setSampleText )
50 Q_PROPERTY( TQFont font READ font WRITE setFont )
63 bool onlyFixed=
false );
68 TQFont
font()
const {
return m_selFont; }
83 TQString
title()
const {
return m_title; }
88 TQLabel *
label()
const {
return m_sampleLabel; }
93 TQPushButton *
button()
const {
return m_button; }
102 virtual void setFont(
const TQFont &font,
bool onlyFixed=
false );
115 virtual void setSampleText(
const TQString &text );
123 virtual void setTitle(
const TQString & title );
133 void displaySampleText();
138 virtual void buttonClicked();
143 TQString m_sampleText, m_title;
144 TQLabel *m_sampleLabel;
145 TQPushButton *m_button;
150 class KFontRequesterPrivate;
151 KFontRequesterPrivate *d;
This class provides a widget with a lineedit and a button, which invokes a font dialog (KFontDialog).
void fontSelected(const TQFont &font)
Emitted when a new font has been selected in the underlying dialog.
TQString sampleText() const
TQPushButton * button() const