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

Method updatePosition

YACReader/page_label_widget.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void PageLabelWidget::updatePosition()
104{
105 auto parent = dynamic_cast<QWidget *>(this->parent());
106 if (parent == nullptr) {
107 return;
108 }
109
110 animation->stop();
111 if (animation->endValue().toPoint().y() == 0)
112 move(QPoint((parent->geometry().size().width() - this->width()), 0));
113 else
114 move(QPoint((parent->geometry().size().width() - this->width()), -this->height()));
115}
116
117void PageLabelWidget::applyTheme(const Theme &theme)
118{

Callers 3

resizeEventMethod · 0.45
informationSwitchMethod · 0.45
updateInformationMethod · 0.45

Calls 3

QPointClass · 0.85
parentMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected