mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
+
avoid 'blinking'
This commit is contained in:
parent
2ece948a8c
commit
e0a68f08ac
@ -437,13 +437,13 @@ bool SettingsDialog::eventFilter(QObject* obj, QEvent* event) {
|
|||||||
int documentHeight = ui->descriptionText->document()->size().height();
|
int documentHeight = ui->descriptionText->document()->size().height();
|
||||||
int visibleHeight = ui->descriptionText->viewport()->height();
|
int visibleHeight = ui->descriptionText->viewport()->height();
|
||||||
if (documentHeight > visibleHeight) {
|
if (documentHeight > visibleHeight) {
|
||||||
|
ui->descriptionText->setMaximumSize(16777215, 110);
|
||||||
this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
|
this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
|
||||||
currentGeometry.height() + 40);
|
currentGeometry.height() + 40);
|
||||||
ui->descriptionText->setMaximumSize(16777215, 110);
|
|
||||||
} else {
|
} else {
|
||||||
|
ui->descriptionText->setMaximumSize(16777215, 70);
|
||||||
this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
|
this->setGeometry(currentGeometry.x(), currentGeometry.y(), newWidth,
|
||||||
initialHeight);
|
initialHeight);
|
||||||
ui->descriptionText->setMaximumSize(16777215, 70);
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user