mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Use QT_DEPRECATED_WARNINGS_SINCE
This commit is contained in:
parent
29d93d348c
commit
96ef82272b
4 changed files with 9 additions and 13 deletions
|
@ -324,7 +324,10 @@ void Launcher::initHighDpi() {
|
|||
qputenv("QT_DPI_ADJUSTMENT_POLICY", "AdjustDpi");
|
||||
#endif // Qt < 6.2.0
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
#endif // Qt < 6.0.0
|
||||
|
||||
if (OptionFractionalScalingEnabled.value()) {
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
|
|
@ -17,7 +17,6 @@ public:
|
|||
|
||||
private:
|
||||
void initHook() override;
|
||||
void initHighDpi() override;
|
||||
|
||||
bool launchUpdater(UpdaterLaunch action) override;
|
||||
|
||||
|
|
|
@ -27,11 +27,6 @@ void Launcher::initHook() {
|
|||
base::RegisterBundledResources(u"Telegram.rcc"_q);
|
||||
}
|
||||
|
||||
void Launcher::initHighDpi() {
|
||||
// macOS Retina display support is working fine.
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
}
|
||||
|
||||
bool Launcher::launchUpdater(UpdaterLaunch action) {
|
||||
if (cExeName().isEmpty()) {
|
||||
return false;
|
||||
|
|
|
@ -241,13 +241,12 @@ elseif (APPLE)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_options(lib_tgcalls
|
||||
PRIVATE
|
||||
-Wno-deprecated-volatile
|
||||
-Wno-ambiguous-reversed-operator
|
||||
)
|
||||
endif()
|
||||
target_compile_options_if_exists(lib_tgcalls
|
||||
PRIVATE
|
||||
-Wno-deprecated-volatile
|
||||
-Wno-ambiguous-reversed-operator
|
||||
-Wno-deprecated-declarations
|
||||
)
|
||||
|
||||
remove_target_sources(lib_tgcalls ${tgcalls_loc}
|
||||
platform/android/AndroidContext.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue