mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
fixed initial information label position
This commit is contained in:
parent
cd4c86a80c
commit
fe3cbf2efe
@ -10,7 +10,7 @@ PageLabelWidget::PageLabelWidget(QWidget * parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
animation = new QPropertyAnimation(this,"pos");
|
||||
animation->setDuration(150);
|
||||
animation->setDuration(150);
|
||||
|
||||
int verticalRes = QApplication::desktop()->screenGeometry().height();
|
||||
|
||||
@ -110,7 +110,12 @@ void PageLabelWidget::updatePosition()
|
||||
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||
if(parent == 0)
|
||||
{
|
||||
return;
|
||||
return;
|
||||
}
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),this->pos().y()));
|
||||
}
|
||||
|
||||
animation->stop();
|
||||
if (animation->endValue().toPoint().y() == 0)
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),0));
|
||||
else
|
||||
move(QPoint((parent->geometry().size().width()-this->width()),-this->height()));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user