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

Method updateTargetPosition

pj_widgets/src/ToastNotification.cpp:180–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void ToastNotification::updateTargetPosition(const QPoint& target) {
181 if (slide_animation_->state() == QAbstractAnimation::Running && !is_closing_) {
182 // Re-aim the in-flight animation from the current position.
183 slide_animation_->stop();
184 slide_animation_->setStartValue(pos());
185 slide_animation_->setEndValue(target);
186 slide_animation_->start();
187 } else if (!is_closing_) {
188 move(target);
189 }
190}
191
192void ToastNotification::onCloseClicked() {
193 hideAnimated();

Callers 1

repositionToastsMethod · 0.80

Calls 3

stateMethod · 0.45
stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected