20 #ifndef TDEFONTREQUESTER_H
21 #define TDEFONTREQUESTER_H
27 #include <tdelibs_export.h>
48 TQ_PROPERTY( TQString title READ title WRITE setTitle )
49 TQ_PROPERTY( TQString sampleText READ sampleText WRITE setSampleText )
50 TQ_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 TDEFontRequesterPrivate;
151 TDEFontRequesterPrivate *d;
This class provides a widget with a lineedit and a button, which invokes a font dialog (TDEFontDialog...
void fontSelected(const TQFont &font)
Emitted when a new font has been selected in the underlying dialog.
TQString sampleText() const
TQPushButton * button() const