int ESimpleLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QLabel::qt_metacall(_c, _id, _a); if (_id < 0) return _id; #ifndef QT_NO_PROPERTIES if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = fontScaleEnabled(); break; case 1: *reinterpret_cast< double*>(_v) = botTopBorderWidth(); break; case 2: *reinterpret_cast< double*>(_v) = lateralBorderWidth(); break; case 3: *reinterpret_cast< double*>(_v) = fontScaleFactor(); break; case 4: *reinterpret_cast< ScaleMode*>(_v) = fontScaleMode(); break; } _id -= 5; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 1: setBotTopBorderWidth(*reinterpret_cast< double*>(_v)); break; case 2: setLateralBorderWidth(*reinterpret_cast< double*>(_v)); break; case 3: setFontScaleFactor(*reinterpret_cast< double*>(_v)); break; case 4: setFontScaleMode(*reinterpret_cast< ScaleMode*>(_v)); break; } _id -= 5; } else if (_c == QMetaObject::ResetProperty) { _id -= 5; } else if (_c == QMetaObject::QueryPropertyDesignable) { bool *_b = reinterpret_cast<bool*>(_a[0]); switch (_id) { case 1: *_b = fontScaleEnabled(); break; case 2: *_b = fontScaleEnabled(); break; } _id -= 5; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 5; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 5; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 5; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 5; } #endif // QT_NO_PROPERTIES return _id; }
void caBitnames::fontChange(const QFont & oldFont) { Q_UNUSED(oldFont); if(fontScaleMode() == ESimpleLabel::None) EFlag::setFont(this->font()); }