45 #include <QtGui/qwindowdefs.h> 46 #include <QtGui/qdialog.h> 47 #include <QtGui/qfont.h> 55 #ifndef QT_NO_FONTDIALOG 65 FontDialogOptions options;
69 NoButtons = 0x00000001,
70 DontUseNativeDialog = 0x00000002
79 void setCurrentFont(
const QFont &font);
80 QFont currentFont()
const;
82 QFont selectedFont()
const;
86 void setOptions(FontDialogOptions options);
87 FontDialogOptions options()
const;
89 #ifdef Q_NO_USING_KEYWORD 102 FontDialogOptions options);
109 {
Q_UNUSED(name);
return getFont(ok, initial, parent); }
111 {
Q_UNUSED(name);
return getFont(ok, parent); }
115 void currentFontChanged(
const QFont &font);
116 void fontSelected(
const QFont &font);
120 void done(
int result);
134 #if defined(Q_WS_MAC) 141 #endif // QT_NO_FONTDIALOG 147 #endif // QFONTDIALOG_H #define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QDialog class is the base class of dialog windows.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QFontDialog class provides a dialog widget for selecting a font.
virtual void done(int)
Closes the dialog and sets its result code to r.
FontDialogOption
This enum specifies various options that affect the look and feel of a font dialog.
The QFont class specifies a font used for drawing text.
bool eventFilter(QObject *, QEvent *)
Reimplemented Function
void open()
Shows the dialog as a window modal dialog, returning immediately.
#define Q_DECLARE_PRIVATE(Class)
The QEvent class is the base class of all event classes.
void setVisible(bool visible)
Reimplemented Function
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...