Changeset View
Changeset View
Standalone View
Standalone View
src/kfontrequester.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
79 | // Select the font with confirmed properties. | 79 | // Select the font with confirmed properties. | ||
80 | QFont result = dbase.font(family, style, int(size)); | 80 | QFont result = dbase.font(family, style, int(size)); | ||
81 | if (dbase.isSmoothlyScalable(family, style) && result.pointSize() == floor(size)) { | 81 | if (dbase.isSmoothlyScalable(family, style) && result.pointSize() == floor(size)) { | ||
82 | result.setPointSizeF(size); | 82 | result.setPointSizeF(size); | ||
83 | } | 83 | } | ||
84 | return result; | 84 | return result; | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | class KFontRequester::KFontRequesterPrivate | 87 | class Q_DECL_HIDDEN KFontRequester::KFontRequesterPrivate | ||
88 | { | 88 | { | ||
89 | public: | 89 | public: | ||
90 | KFontRequesterPrivate(KFontRequester *q): q(q) {} | 90 | KFontRequesterPrivate(KFontRequester *q): q(q) {} | ||
91 | 91 | | |||
92 | void displaySampleText(); | 92 | void displaySampleText(); | ||
93 | void setToolTip(); | 93 | void setToolTip(); | ||
94 | 94 | | |||
95 | void _k_buttonClicked(); | 95 | void _k_buttonClicked(); | ||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |