mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
corregido casting est?tico
This commit is contained in:
parent
e99d690d2d
commit
e0b34a68c6
@ -90,5 +90,10 @@ void PageLabelWidget::setText(const QString & text)
|
|||||||
|
|
||||||
void PageLabelWidget::updatePosition()
|
void PageLabelWidget::updatePosition()
|
||||||
{
|
{
|
||||||
move(QPoint((((QWidget *) parent())->geometry().size().width()-this->width())/2,this->pos().y()));
|
QWidget * parent = dynamic_cast<QWidget *>(this->parent());
|
||||||
|
if(parent == 0)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
move(QPoint((parent->geometry().size().width()-this->width())/2,this->pos().y()));
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user