21 #ifndef __ctkFontButton_h 22 #define __ctkFontButton_h 26 #include <QPushButton> 29 #include "ctkWidgetsExport.h" 30 class ctkFontButtonPrivate;
38 Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont NOTIFY currentFontChanged USER
true)
41 Q_PROPERTY(QString fontTextFormat READ fontTextFormat WRITE setFontTextFormat)
68 ctkFontButton(
const QFont& currentFont, QWidget * parent = 0);
74 void setCurrentFont(
const QFont& newFont);
75 QFont currentFont()
const;
79 void setFontTextFormat(
const QString& fontTextFormat);
83 QString fontTextFormat()
const;
94 void currentFontChanged(
const QFont&);
96 QScopedPointer<ctkFontButtonPrivate>
d_ptr;