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

Method hideAnimated

pj_widgets/src/ToastNotification.cpp:110–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void ToastNotification::hideAnimated() {
111 if (is_closing_) {
112 return;
113 }
114 is_closing_ = true;
115
116 if (timeout_timer_) {
117 timeout_timer_->stop();
118 }
119
120 QPoint start_pos = pos();
121 QPoint end_pos = start_pos;
122 end_pos.setX(start_pos.x() + width() + 50);
123
124 slide_animation_->setStartValue(start_pos);
125 slide_animation_->setEndValue(end_pos);
126 slide_animation_->start();
127}
128
129QString ToastNotification::message() const {
130 return message_label_->text();

Callers

nothing calls this directly

Calls 4

setXMethod · 0.80
stopMethod · 0.45
xMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected