-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(obs-ndi): add patch for deprecating Qt function
- Loading branch information
1 parent
c51aee1
commit 6232667
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 23 additions & 4 deletions
27
apps/user/desktop/tool/multimedia/obs-studio/obs-ndi.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,30 @@ | ||
--- src/forms/update.cpp 2024-10-21 12:04:28.226835449 +0900 | ||
+++ src/forms/update.cpp 2024-10-21 12:05:09.937827059 +0900 | ||
@@ -183,7 +183,7 @@ | ||
diff --git a/src/forms/obsndi-update.cpp b/src/forms/obsndi-update.cpp | ||
index 0c447af..a29db61 100644 | ||
--- a/src/forms/obsndi-update.cpp | ||
+++ b/src/forms/obsndi-update.cpp | ||
@@ -46,6 +46,7 @@ | ||
// #include <QNetworkRequest> | ||
#include <QPointer> | ||
#include <QSslSocket> | ||
+#include <QTimeZone> | ||
#include <QTimer> | ||
#include <QUrlQuery> | ||
|
||
@@ -174,7 +175,7 @@ | ||
|
||
auto utcDateTime = QDateTime::fromString( | ||
pluginUpdateInfo.releaseDate, Qt::ISODate); | ||
- utcDateTime.setTimeSpec(Qt::UTC); | ||
+ utcDateTime.setTimeZone(QTimeZone::UTC); | ||
auto formattedUtcDateTime = | ||
utcDateTime.toString("yyyy-MM-dd hh:mm:ss 'UTC'"); | ||
textTemp = QString("<h3>%1</h3>") | ||
@@ -190,7 +191,7 @@ | ||
ui->checkBoxAutoCheckForUpdates->setChecked( | ||
config->AutoCheckForUpdates()); | ||
connect(ui->checkBoxAutoCheckForUpdates, | ||
- &QCheckBox::stateChanged, this, [](int state) { | ||
+ &QCheckBox::checkStateChanged, this, [](int state) { | ||
Config::Current(false)->AutoCheckForUpdates( | ||
Config::Current()->AutoCheckForUpdates( | ||
state == Qt::Checked); | ||
}); |