2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Get rid of unneeded QT_VERSION_CHECK in linux platform code

This commit is contained in:
Ilya Fedin
2021-02-19 08:27:58 +04:00
committed by John Preston
parent 15d18077b8
commit 6932d859c9
4 changed files with 2 additions and 20 deletions

View File

@@ -49,10 +49,7 @@ Launcher::Launcher(int argc, char *argv[])
}
void Launcher::initHook() {
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QApplication::setAttribute(Qt::AA_DisableSessionManager, true);
#endif // Qt >= 5.14
QApplication::setDesktopFileName(GetLauncherFilename());
}

View File

@@ -590,11 +590,7 @@ void NotificationData::setImage(const QString &imagePath) {
g_variant_new_from_data(
G_VARIANT_TYPE("ay"),
_image.constBits(),
#if QT_VERSION < QT_VERSION_CHECK(5, 10, 0)
_image.byteCount(),
#else // Qt < 5.10.0
_image.sizeInBytes(),
#endif // Qt >= 5.10.0
true,
nullptr,
nullptr)));