EvButton::EvButton(QWidget *parent) : QPushButton(parent),m_hover(false) { setFont(evApparenceSettings->buttonsFont()); setMouseTracking(true); setPressedColor(evApparenceSettings->primaryColor()); setBackgroundColor(evApparenceSettings->darkColor()); setHoverColor(evApparenceSettings->ligthColor()); m_hoverColor.setAlpha(50); setTextColor(evApparenceSettings->ligthColor()); setPaintMode(IconAndText); setRounded(true); }
int QtGnuplotWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 8) qt_static_metacall(this, _c, _id, _a); _id -= 8; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = antialias(); break; case 1: *reinterpret_cast< bool*>(_v) = rounded(); break; case 2: *reinterpret_cast< bool*>(_v) = replotOnResize(); break; case 3: *reinterpret_cast< QColor*>(_v) = backgroundColor(); break; case 4: *reinterpret_cast< bool*>(_v) = statusLabelActive(); break; } _id -= 5; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setAntialias(*reinterpret_cast< bool*>(_v)); break; case 1: setRounded(*reinterpret_cast< bool*>(_v)); break; case 2: setReplotOnResize(*reinterpret_cast< bool*>(_v)); break; case 3: setBackgroundColor(*reinterpret_cast< QColor*>(_v)); break; case 4: setStatusLabelActive(*reinterpret_cast< bool*>(_v)); break; } _id -= 5; } else if (_c == QMetaObject::ResetProperty) { _id -= 5; } else if (_c == QMetaObject::QueryPropertyDesignable) { _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; }