33
33
class FontColourChooser : public QWidget
37
explicit FontColourChooser(QWidget* parent = 0,
38
const QStringList& fontList = QStringList(),
39
const QString& frameLabel = i18n("Requested font"),
40
bool fg = true, bool defaultFont = false, int visibleListSize = 8);
42
void setDefaultFont();
43
void setFont(const QFont&, bool onlyFixed = false);
44
bool defaultFont() const;
46
QColor fgColour() const;
47
QColor bgColour() const;
48
void setFgColour(const QColor&);
49
void setBgColour(const QColor&);
50
QString sampleText() const;
51
void setSampleText(const QString& text);
52
bool isReadOnly() const { return mReadOnly; }
53
void setReadOnly(bool);
54
virtual bool eventFilter(QObject*, QEvent*);
57
void setSampleColour();
58
void slotDefaultFontToggled(bool);
61
ColourButton* mFgColourButton; // or null
62
ColourButton* mBgColourButton;
63
KFontChooser* mFontChooser;
64
CheckBox* mDefaultFont; // or null
37
explicit FontColourChooser(QWidget* parent = 0,
38
const QStringList& fontList = QStringList(),
39
const QString& frameLabel = i18n("Requested font"),
40
bool fg = true, bool defaultFont = false, int visibleListSize = 8);
42
void setDefaultFont();
43
void setFont(const QFont&, bool onlyFixed = false);
44
bool defaultFont() const;
46
QColor fgColour() const;
47
QColor bgColour() const;
48
void setFgColour(const QColor&);
49
void setBgColour(const QColor&);
50
QString sampleText() const;
51
void setSampleText(const QString& text);
52
bool isReadOnly() const { return mReadOnly; }
53
void setReadOnly(bool);
54
virtual bool eventFilter(QObject*, QEvent*);
57
void setSampleColour();
58
void slotDefaultFontToggled(bool);
61
ColourButton* mFgColourButton; // or null
62
ColourButton* mBgColourButton;
63
KFontChooser* mFontChooser;
64
CheckBox* mDefaultFont; // or null