//! Resize the dial widget void QwtDial::resizeEvent(QResizeEvent *e) { QWidget::resizeEvent(e); if ( !hasVisibleBackground() ) setMask(QRegion(boundingRect(), QRegion::Ellipse)); }
int QwtDial::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QwtAbstractSlider::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) = hasVisibleBackground(); break; case 1: *reinterpret_cast< int*>(_v) = lineWidth(); break; case 2: *reinterpret_cast< Shadow*>(_v) = frameShadow(); break; case 3: *reinterpret_cast< Mode*>(_v) = mode(); break; case 4: *reinterpret_cast< double*>(_v) = origin(); break; case 5: *reinterpret_cast< bool*>(_v) = wrapping(); break; } _id -= 6; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: showBackground(*reinterpret_cast< bool*>(_v)); break; case 1: setLineWidth(*reinterpret_cast< int*>(_v)); break; case 2: setFrameShadow(*reinterpret_cast< Shadow*>(_v)); break; case 3: setMode(*reinterpret_cast< Mode*>(_v)); break; case 4: setOrigin(*reinterpret_cast< double*>(_v)); break; case 5: setWrapping(*reinterpret_cast< bool*>(_v)); break; } _id -= 6; } else if (_c == QMetaObject::ResetProperty) { _id -= 6; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 6; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 6; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 6; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 6; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 6; } #endif // QT_NO_PROPERTIES return _id; }