KDEUI
kfontcombobox.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KFONTCOMBOBOX_P_H
00021 #define KFONTCOMBOBOX_P_H
00022
00023 #include <kdeui_export.h>
00024
00025 #include <kcombobox.h>
00026
00027 class KFontComboBoxPrivate;
00028
00047 class KDEUI_EXPORT KFontComboBox : public KComboBox
00048 {
00049 Q_OBJECT
00050
00051 Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont)
00052
00053 public:
00054
00060 explicit KFontComboBox (QWidget *parent = 0);
00061
00068 void setOnlyFixed (bool onlyFixed);
00069
00073 virtual ~KFontComboBox ();
00074
00080 QFont currentFont () const;
00081
00089 virtual QSize sizeHint() const;
00090
00091 public Q_SLOTS:
00097 void setCurrentFont (const QFont &font);
00098
00099 Q_SIGNALS:
00106 void currentFontChanged (const QFont &font);
00107
00108 protected:
00109 bool event (QEvent *e);
00110
00111 private:
00112
00113 friend class KFontComboBoxPrivate;
00114 KFontComboBoxPrivate * const d;
00115
00116 Q_DISABLE_COPY(KFontComboBox)
00117
00118 Q_PRIVATE_SLOT(d, void _k_currentFontChanged (int))
00119 };
00120
00121 #endif