Fix build with Qt < 5.14.
This commit is contained in:
parent
49480001f7
commit
ed50aa0d8e
|
@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "core/file_utilities.h"
|
#include "core/file_utilities.h"
|
||||||
#include "core/mime_type.h"
|
#include "core/mime_type.h"
|
||||||
#include "base/unixtime.h"
|
#include "base/unixtime.h"
|
||||||
|
#include "base/qt_adapters.h"
|
||||||
#include "media/audio/media_audio.h"
|
#include "media/audio/media_audio.h"
|
||||||
#include "media/clip/media_clip_reader.h"
|
#include "media/clip/media_clip_reader.h"
|
||||||
#include "mtproto/facade.h"
|
#include "mtproto/facade.h"
|
||||||
|
@ -33,7 +34,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
#include <QtCore/QBuffer>
|
#include <QtCore/QBuffer>
|
||||||
#include <QtGui/QImageWriter>
|
#include <QtGui/QImageWriter>
|
||||||
#include <QtGui/QColorSpace>
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -882,8 +882,7 @@ void FileLoadTask::process(Args &&args) {
|
||||||
// We have an example of dark .png image that when being sent without
|
// We have an example of dark .png image that when being sent without
|
||||||
// removing its color space is displayed fine on tdesktop, but with
|
// removing its color space is displayed fine on tdesktop, but with
|
||||||
// a light gray background on mobile apps.
|
// a light gray background on mobile apps.
|
||||||
full.setColorSpace(QColorSpace());
|
base::QClearColorSpace(full);
|
||||||
|
|
||||||
QBuffer buffer(&filedata);
|
QBuffer buffer(&filedata);
|
||||||
QImageWriter writer(&buffer, "JPEG");
|
QImageWriter writer(&buffer, "JPEG");
|
||||||
writer.setQuality(87);
|
writer.setQuality(87);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c14879d8d0753f4e3a20890f7559d7dcffa37dd4
|
Subproject commit 707bdc84918eddfd8c08e776d328dab03dc04b25
|
Loading…
Reference in New Issue