mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Support building on Windows with Qt 6.
This commit is contained in:
@@ -118,7 +118,7 @@ constexpr auto kFileOpenTimeoutMs = crl::time(1000);
|
||||
LaunchState GlobalLaunchState/* = LaunchState::Running*/;
|
||||
|
||||
void SetCrashAnnotationsGL() {
|
||||
#ifdef Q_OS_WIN
|
||||
#ifdef DESKTOP_APP_USE_ANGLE
|
||||
CrashReports::SetAnnotation("OpenGL ANGLE", [] {
|
||||
if (Core::App().settings().disableOpenGL()) {
|
||||
return "Disabled";
|
||||
@@ -131,11 +131,11 @@ void SetCrashAnnotationsGL() {
|
||||
}
|
||||
Unexpected("Ui::GL::CurrentANGLE value in SetupANGLE.");
|
||||
}());
|
||||
#else // Q_OS_WIN
|
||||
#else // DESKTOP_APP_USE_ANGLE
|
||||
CrashReports::SetAnnotation(
|
||||
"OpenGL",
|
||||
Core::App().settings().disableOpenGL() ? "Disabled" : "Enabled");
|
||||
#endif // Q_OS_WIN
|
||||
#endif // DESKTOP_APP_USE_ANGLE
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
@@ -620,7 +620,7 @@ void Sandbox::processPostponedCalls(int level) {
|
||||
bool Sandbox::nativeEventFilter(
|
||||
const QByteArray &eventType,
|
||||
void *message,
|
||||
base::NativeEventResult *result) {
|
||||
native_event_filter_result *result) {
|
||||
registerEnterFromEventLoop();
|
||||
return false;
|
||||
}
|
||||
|
@@ -8,7 +8,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#pragma once
|
||||
|
||||
#include "mtproto/mtproto_proxy_data.h"
|
||||
#include "base/qt/qt_common_adapters.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtNetwork/QLocalServer>
|
||||
@@ -87,7 +86,7 @@ private:
|
||||
bool nativeEventFilter(
|
||||
const QByteArray &eventType,
|
||||
void *message,
|
||||
base::NativeEventResult *result) override;
|
||||
native_event_filter_result *result) override;
|
||||
void processPostponedCalls(int level);
|
||||
void singleInstanceChecked();
|
||||
void launchApplication();
|
||||
|
Reference in New Issue
Block a user