Use QT_DEPRECATED_WARNINGS_SINCE

This commit is contained in:
Ilya Fedin 2023-02-10 11:39:13 +04:00 committed by John Preston
parent 29d93d348c
commit 96ef82272b
4 changed files with 9 additions and 13 deletions

View File

@ -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);

View File

@ -17,7 +17,6 @@ public:
private:
void initHook() override;
void initHighDpi() override;
bool launchUpdater(UpdaterLaunch action) override;

View File

@ -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;

View File

@ -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