int QFontComboBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QComboBox::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 4) qt_static_metacall(this, _c, _id, _a); _id -= 4; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QFontDatabase::WritingSystem*>(_v) = writingSystem(); break; case 1: *reinterpret_cast<int*>(_v) = QFlag(fontFilters()); break; case 2: *reinterpret_cast< QFont*>(_v) = currentFont(); break; } _id -= 3; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setWritingSystem(*reinterpret_cast< QFontDatabase::WritingSystem*>(_v)); break; case 1: setFontFilters(QFlag(*reinterpret_cast<int*>(_v))); break; case 2: setCurrentFont(*reinterpret_cast< QFont*>(_v)); break; } _id -= 3; } else if (_c == QMetaObject::ResetProperty) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 3; } #endif // QT_NO_PROPERTIES return _id; }
void FontPanel::slotWritingSystemChanged(int) { updateWritingSystem(writingSystem()); delayedPreviewFontUpdate(); }