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

Method hide

YACReader/page_label_widget.cpp:77–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void PageLabelWidget::hide()
78{
79 if (this->pos().y() >= 0 && animation->state() != QPropertyAnimation::Running) {
80 auto parent = dynamic_cast<QWidget *>(this->parent());
81 if (parent == nullptr) {
82 return;
83 }
84 // connect(animation,SIGNAL(finished()),this,SLOT(setHidden()));
85 animation->setStartValue(QPoint((parent->geometry().size().width() - this->width()), 0));
86 animation->setEndValue(QPoint((parent->geometry().size().width() - this->width()), -this->height()));
87 animation->start();
88 }
89}
90
91void PageLabelWidget::setText(const QString &text)
92{

Callers 15

YACReaderTreeViewMethod · 0.80
avancedOptionToogledMethod · 0.80
YACReaderFlow3DMethod · 0.80
OptionsDialogMethod · 0.80
createToolBarsMethod · 0.80
toFullScreenMethod · 0.80
toNormalMethod · 0.80
hideToolBarsMethod · 0.80
YACReaderTranslatorMethod · 0.80

Calls 4

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

Tested by

no test coverage detected