MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / changeEvent

Method changeEvent

pj_widgets/src/Scrollbar.cpp:189–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void Scrollbar::changeEvent(QEvent* event) {
190 QWidget::changeEvent(event);
191 if (!accent_overridden_ &&
192 (event->type() == QEvent::PaletteChange || event->type() == QEvent::ApplicationPaletteChange ||
193 event->type() == QEvent::StyleChange)) {
194 accent_ = scrollbar_detail::defaultAccent(QGuiApplication::palette().window().color());
195 update();
196 }
197}
198
199double Scrollbar::currentOpacity() const {
200 return opacity_effect_ ? opacity_effect_->opacity() : 1.0;

Callers

nothing calls this directly

Calls 3

defaultAccentFunction · 0.85
typeMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected