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:
@@ -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());
|
||||
}
|
||||
|
||||
|
@@ -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)));
|
||||
|
Reference in New Issue
Block a user