mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Log media viewer geometry
This commit is contained in:
parent
da74fe4248
commit
7e4dff25e9
1 changed files with 11 additions and 0 deletions
|
@ -473,10 +473,21 @@ void OverlayWidget::updateGeometry() {
|
|||
if (geometry() == available) {
|
||||
return;
|
||||
}
|
||||
DEBUG_LOG(("Viewer Pos: Setting %1, %2, %3, %4")
|
||||
.arg(available.x())
|
||||
.arg(available.y())
|
||||
.arg(available.width())
|
||||
.arg(available.height()));
|
||||
setGeometry(available);
|
||||
}
|
||||
|
||||
void OverlayWidget::resizeEvent(QResizeEvent *e) {
|
||||
const auto newGeometry = geometry();
|
||||
DEBUG_LOG(("Viewer Pos: Resized to %1, %2, %3, %4")
|
||||
.arg(newGeometry.x())
|
||||
.arg(newGeometry.y())
|
||||
.arg(newGeometry.width())
|
||||
.arg(newGeometry.height()));
|
||||
updateControlsGeometry();
|
||||
OverlayParent::resizeEvent(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue