2020-09-19 07:38:13 +00:00
|
|
|
From 0c2fdafdb3c0b522732905632bb01e4ada33171c Mon Sep 17 00:00:00 2001
|
2020-08-23 10:56:49 +00:00
|
|
|
From: Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
|
|
|
|
Date: Wed, 19 Aug 2020 13:08:01 -0300
|
2020-09-01 10:47:53 +00:00
|
|
|
Subject: [PATCH 17/24] UI: Rename callback to match signal name
|
2020-08-23 10:56:49 +00:00
|
|
|
|
|
|
|
The sizeChanged callback is connected to the screenChanged signal,
|
|
|
|
and evidently the naming doesn't match. Rename the callback to
|
|
|
|
match the signal name.
|
|
|
|
---
|
|
|
|
UI/qt-display.cpp | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/UI/qt-display.cpp b/UI/qt-display.cpp
|
|
|
|
index c00719ce..feed5b6c 100644
|
|
|
|
--- a/UI/qt-display.cpp
|
|
|
|
+++ b/UI/qt-display.cpp
|
|
|
|
@@ -56,7 +56,7 @@ OBSQTDisplay::OBSQTDisplay(QWidget *parent, Qt::WindowFlags flags)
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
- auto sizeChanged = [this](QScreen *) {
|
|
|
|
+ auto screenChanged = [this](QScreen *) {
|
|
|
|
CreateDisplay();
|
|
|
|
|
|
|
|
QSize size = GetPixelSize(this);
|
|
|
|
@@ -64,7 +64,7 @@ OBSQTDisplay::OBSQTDisplay(QWidget *parent, Qt::WindowFlags flags)
|
|
|
|
};
|
|
|
|
|
|
|
|
connect(windowHandle(), &QWindow::visibleChanged, windowVisible);
|
|
|
|
- connect(windowHandle(), &QWindow::screenChanged, sizeChanged);
|
|
|
|
+ connect(windowHandle(), &QWindow::screenChanged, screenChanged);
|
|
|
|
}
|
|
|
|
|
|
|
|
QColor OBSQTDisplay::GetDisplayBackgroundColor() const
|
|
|
|
--
|
|
|
|
2.28.0
|
|
|
|
|