209static void applyFont(
const QString &family,
int size, DeviceProfile::ApplyMode am,
QWidget *widget)
211 QFont currentFont = widget->font();
212 if (currentFont.pointSize() == size && currentFont.family() == family)
215 case DeviceProfile::ApplyFormParent:
217 widget->setFont(QFont(family, size));
219 case DeviceProfile::ApplyPreview: {
222 const uint resolve = currentFont.resolveMask();
223 if (!(resolve & QFont::FamilyResolved)) {
224 currentFont.setFamily(family);
227 if (!(resolve & QFont::SizeResolved)) {
228 currentFont.setPointSize(size);
232 widget->setFont(currentFont);
314 switch (currentStage) {
326 if (startElement == nameElementC)
328 if (startElement == fontFamilyElementC)
330 if (startElement == fontPointSizeElementC)
332 if (startElement == dPIXElementC)
334 if (startElement == dPIYElementC)
336 if (startElement == styleElementC)