mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Stop using availableGeometry
This commit is contained in:
@ -9,10 +9,15 @@ PageLabelWidget::PageLabelWidget(QWidget *parent)
|
||||
animation->setDuration(150);
|
||||
animation->setEndValue(QPoint((parent->geometry().size().width() - this->width()), -this->height()));
|
||||
|
||||
int verticalRes = QApplication::desktop()->screenGeometry().height();
|
||||
QScreen *screen = parent != nullptr ? parent->window()->screen() : nullptr;
|
||||
if (screen == nullptr) {
|
||||
screen = QApplication::screens().constFirst();
|
||||
}
|
||||
|
||||
int verticalRes = screen != nullptr ? screen->size().height() : 600;
|
||||
|
||||
auto layout = new QHBoxLayout;
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
QSize labelSize;
|
||||
|
Reference in New Issue
Block a user