MCPcopy Create free account
hub / github.com/YACReader/yacreader / show

Method show

YACReader/page_label_widget.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void PageLabelWidget::show()
60{
61 if (this->pos().y() <= 0 && animation->state() != QPropertyAnimation::Running) {
62 auto parent = dynamic_cast<QWidget *>(this->parent());
63 if (parent == nullptr) {
64 return;
65 }
66
67 QWidget::show();
68 // connect(animation,SIGNAL(finished()),this,SLOT(QWidget::hide()));
69 animation->disconnect();
70
71 animation->setStartValue(QPoint((parent->geometry().size().width() - this->width()), -this->height()));
72 animation->setEndValue(QPoint((parent->geometry().size().width() - this->width()), 0));
73 animation->start();
74 }
75}
76
77void PageLabelWidget::hide()
78{

Callers

nothing calls this directly

Calls 4

QPointClass · 0.85
stateMethod · 0.80
startMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected