mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Remove many includes from stdafx.pch.
This commit is contained in:
parent
4929de2bfb
commit
6343221d7b
109 changed files with 447 additions and 87 deletions
Telegram/SourceFiles
app.cpp
boxes
about_box.cppadd_contact_box.cppbackground_preview_box.cppconfirm_box.cppconnection_box.cppedit_caption_box.cpplanguage_box.cpp
peers
send_files_box.cppsticker_set_box.cppusername_box.cppcalls
chat_helpers
emoji_keywords.cppemoji_suggestions_widget.cppemoji_suggestions_widget.hfield_autocomplete.cppgifs_list_widget.cppmessage_field.cppmessage_field.hstickers_emoji_pack.cppstickers_list_widget.cpp
config.hcore
application.cppclick_handler_types.cppcrash_report_window.cppcrash_report_window.hfile_utilities.cppmime_type.cppsandbox.cppsandbox.hshortcuts.cppupdate_checker.cpputils.cpp
data
dialogs
history
admin_log
history_inner_widget.cpphistory_item_components.cpphistory_location_manager.cpphistory_message.cpphistory_widget.cppview
info
inline_bots
lang
mainwidget.cppmainwindow.cppmedia
clip
player
streaming
view
mtproto
passport
platform
linux
mac
win
settings
stdafx.hstorage
support
ui
|
@ -47,6 +47,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_history.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtGui/QFontDatabase>
|
||||
|
||||
#ifdef OS_MAC_OLD
|
||||
#include <libexif/exif-data.h>
|
||||
#endif // OS_MAC_OLD
|
||||
|
|
|
@ -20,6 +20,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/update_checker.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
namespace {
|
||||
|
||||
rpl::producer<TextWithEntities> Text1() {
|
||||
|
@ -100,7 +104,7 @@ void AboutBox::showVersionHistory() {
|
|||
}
|
||||
url = url.arg(qsl("talpha%1_%2").arg(cRealAlphaVersion()).arg(Core::countAlphaVersionSignature(cRealAlphaVersion())));
|
||||
|
||||
QApplication::clipboard()->setText(url);
|
||||
QGuiApplication::clipboard()->setText(url);
|
||||
|
||||
Ui::show(Box<InformBox>("The link to the current private alpha version of Telegram Desktop was copied to the clipboard."));
|
||||
} else {
|
||||
|
|
|
@ -41,6 +41,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "observer_peer.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMaxGroupChannelTitle = 255; // See also edit_peer_info_box.
|
||||
|
|
|
@ -27,6 +27,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_history.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMaxWallPaperSlugLength = 255;
|
||||
|
@ -221,7 +224,7 @@ void ServiceCheck::Generator::invalidate() {
|
|||
|
||||
ServiceCheck::Generator &ServiceCheck::Frames() {
|
||||
static const auto Instance = Ui::CreateChild<Generator>(
|
||||
QApplication::instance());
|
||||
QCoreApplication::instance());
|
||||
return *Instance;
|
||||
}
|
||||
|
||||
|
@ -498,7 +501,7 @@ void BackgroundPreviewBox::apply() {
|
|||
}
|
||||
|
||||
void BackgroundPreviewBox::share() {
|
||||
QApplication::clipboard()->setText(_paper.shareUrl());
|
||||
QGuiApplication::clipboard()->setText(_paper.shareUrl());
|
||||
Ui::Toast::Show(tr::lng_background_link_copied(tr::now));
|
||||
}
|
||||
|
||||
|
|
|
@ -35,6 +35,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_session.h"
|
||||
#include "observer_peer.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
TextParseOptions _confirmBoxTextOptions = {
|
||||
TextParseLinks | TextParseMultiline | TextParseMarkdown | TextParseRichText, // flags
|
||||
0, // maxw
|
||||
|
|
|
@ -28,6 +28,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_chat_helpers.h"
|
||||
#include "styles/style_info.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kSaveSettingsDelayedTimeout = crl::time(1000);
|
||||
|
@ -1426,7 +1429,7 @@ void ProxiesBoxController::share(const ProxyData &proxy) {
|
|||
? "&pass=" + qthelp::url_encode(proxy.password) : "")
|
||||
+ ((proxy.type == Type::Mtproto && !proxy.password.isEmpty())
|
||||
? "&secret=" + proxy.password : "");
|
||||
QApplication::clipboard()->setText(link);
|
||||
QGuiApplication::clipboard()->setText(link);
|
||||
Ui::Toast::Show(tr::lng_username_copied(tr::now));
|
||||
}
|
||||
|
||||
|
@ -1434,7 +1437,7 @@ ProxiesBoxController::~ProxiesBoxController() {
|
|||
if (_saveTimer.isActive()) {
|
||||
App::CallDelayed(
|
||||
kSaveSettingsDelayedTimeout,
|
||||
QApplication::instance(),
|
||||
QCoreApplication::instance(),
|
||||
[] { Local::writeSettings(); });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/widgets/checkbox.h"
|
||||
#include "confirm_box.h"
|
||||
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
EditCaptionBox::EditCaptionBox(
|
||||
QWidget*,
|
||||
not_null<Window::SessionController*> controller,
|
||||
|
|
|
@ -32,6 +32,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_passport.h"
|
||||
#include "styles/style_chat_helpers.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
using Language = Lang::Language;
|
||||
|
@ -408,7 +411,7 @@ bool Rows::hasMenu(not_null<const Row*> row) const {
|
|||
|
||||
void Rows::share(not_null<const Row*> row) const {
|
||||
const auto link = qsl("https://t.me/setlanguage/") + row->data.id;
|
||||
QApplication::clipboard()->setText(link);
|
||||
QGuiApplication::clipboard()->setText(link);
|
||||
Ui::Toast::Show(tr::lng_username_copied(tr::now));
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/window_session_controller.h"
|
||||
#include <rpl/flatten_latest.h>
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kUsernameCheckTimeout = crl::time(200);
|
||||
|
@ -607,7 +610,7 @@ object_ptr<Ui::RpWidget> Controller::createInviteLinkEdit() {
|
|||
_controls.inviteLink->setContextCopyText(QString());
|
||||
_controls.inviteLink->setBreakEverywhere(true);
|
||||
_controls.inviteLink->setClickHandlerFilter([=](auto&&...) {
|
||||
QApplication::clipboard()->setText(inviteLinkText());
|
||||
QGuiApplication::clipboard()->setText(inviteLinkText());
|
||||
Ui::Toast::Show(tr::lng_group_invite_copied(tr::now));
|
||||
return false;
|
||||
});
|
||||
|
|
|
@ -38,6 +38,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_chat_helpers.h"
|
||||
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMinPreviewWidth = 20;
|
||||
|
|
|
@ -32,6 +32,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_chat_helpers.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kStickersPanelPerRow = 5;
|
||||
|
@ -177,7 +180,7 @@ void StickerSetBox::addStickers() {
|
|||
|
||||
void StickerSetBox::shareStickers() {
|
||||
auto url = Core::App().createInternalLinkFull(qsl("addstickers/") + _inner->shortName());
|
||||
QApplication::clipboard()->setText(url);
|
||||
QGuiApplication::clipboard()->setText(url);
|
||||
Ui::show(Box<InformBox>(tr::lng_stickers_copied(tr::now)));
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_user.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMinUsernameLength = 5;
|
||||
|
@ -167,7 +170,7 @@ void UsernameBox::changed() {
|
|||
}
|
||||
|
||||
void UsernameBox::linkClick() {
|
||||
QApplication::clipboard()->setText(Core::App().createInternalLinkFull(getName()));
|
||||
QGuiApplication::clipboard()->setText(Core::App().createInternalLinkFull(getName()));
|
||||
Ui::Toast::Show(tr::lng_username_copied(tr::now));
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/main_window.h"
|
||||
#include "layout.h"
|
||||
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace Calls {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_session.h"
|
||||
#include "apiwrap.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
namespace ChatHelpers {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_session.h"
|
||||
#include "styles/style_chat_helpers.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QTextBlock>
|
||||
|
||||
namespace Ui {
|
||||
namespace Emoji {
|
||||
namespace {
|
||||
|
|
|
@ -12,6 +12,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/unique_qptr.h"
|
||||
#include "base/timer.h"
|
||||
|
||||
#include <QtWidgets/QTextEdit>
|
||||
|
||||
namespace Main {
|
||||
class Session;
|
||||
} // namespace Main
|
||||
|
|
|
@ -25,6 +25,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_widgets.h"
|
||||
#include "styles/style_chat_helpers.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
FieldAutocomplete::FieldAutocomplete(
|
||||
QWidget *parent,
|
||||
not_null<Main::Session*> session)
|
||||
|
|
|
@ -25,6 +25,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/window_session_controller.h"
|
||||
#include "history/view/history_view_cursor_state.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace ChatHelpers {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -26,6 +26,12 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_history.h"
|
||||
|
||||
#include <QtCore/QMimeData>
|
||||
#include <QtCore/QStack>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QTextBlock>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
using EditLinkAction = Ui::InputField::EditLinkAction;
|
||||
|
@ -327,7 +333,7 @@ void SetClipboardText(
|
|||
const TextForMimeData &text,
|
||||
QClipboard::Mode mode) {
|
||||
if (auto data = MimeDataFromText(text)) {
|
||||
QApplication::clipboard()->setMimeData(data.release(), mode);
|
||||
QGuiApplication::clipboard()->setMimeData(data.release(), mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/widgets/input_fields.h"
|
||||
#include "base/timer.h"
|
||||
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace Main {
|
||||
class Session;
|
||||
} // namespace Main
|
||||
|
|
|
@ -19,6 +19,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "apiwrap.h"
|
||||
#include "styles/style_history.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace Stickers {
|
||||
namespace details {
|
||||
|
||||
|
|
|
@ -34,6 +34,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_chat_helpers.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace ChatHelpers {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -70,18 +70,6 @@ enum {
|
|||
ChoosePeerByDragTimeout = 1000, // 1 second mouse not moved to choose dialog when dragging a file
|
||||
};
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
inline const GUID &cGUID() {
|
||||
#ifndef OS_MAC_STORE
|
||||
static const GUID gGuid = { 0x87a94ab0, 0xe370, 0x4cde, { 0x98, 0xd3, 0xac, 0xc1, 0x10, 0xc5, 0x96, 0x7d } };
|
||||
#else // OS_MAC_STORE
|
||||
static const GUID gGuid = { 0xe51fb841, 0x8c0b, 0x4ef9, { 0x9e, 0x9e, 0x5a, 0x0, 0x78, 0x56, 0x76, 0x27 } };
|
||||
#endif // OS_MAC_STORE
|
||||
|
||||
return gGuid;
|
||||
}
|
||||
#endif
|
||||
|
||||
inline const char *cGUIDStr() {
|
||||
#ifndef OS_MAC_STORE
|
||||
static const char *gGuidStr = "{87A94AB0-E370-4cde-98D3-ACC110C5967D}";
|
||||
|
|
|
@ -62,6 +62,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "boxes/confirm_box.h"
|
||||
#include "boxes/share_box.h"
|
||||
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtCore/QMimeDatabase>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
namespace Core {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -24,6 +24,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_user.h"
|
||||
#include "data/data_session.h"
|
||||
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
namespace {
|
||||
|
||||
bool UrlRequiresConfirmation(const QUrl &url) {
|
||||
|
|
|
@ -15,6 +15,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "platform/platform_specific.h"
|
||||
#include "base/zlib_help.h"
|
||||
|
||||
#include <QtWidgets/QFileDialog>
|
||||
#include <QtGui/QScreen>
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtCore/QStandardPaths>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kDefaultProxyPort = 80;
|
||||
|
|
|
@ -7,6 +7,15 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtWidgets/QLabel>
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
#include <QtWidgets/QPushButton>
|
||||
#include <QtWidgets/QCheckBox>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QHttpMultiPart>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
|
||||
namespace Core {
|
||||
class Launcher;
|
||||
} // namespace Core
|
||||
|
|
|
@ -13,6 +13,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/unixtime.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <QtWidgets/QFileDialog>
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QStandardPaths>
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
bool filedialogGetSaveFile(
|
||||
QPointer<QWidget> parent,
|
||||
QString &file,
|
||||
|
@ -120,7 +125,7 @@ void OpenEmailLink(const QString &email) {
|
|||
}
|
||||
|
||||
void OpenWith(const QString &filepath, QPoint menuPosition) {
|
||||
InvokeQueued(QApplication::instance(), [=] {
|
||||
InvokeQueued(QCoreApplication::instance(), [=] {
|
||||
if (!Platform::File::UnsafeShowOpenWithDropdown(filepath, menuPosition)) {
|
||||
Core::App().preventWindowActivation();
|
||||
if (!Platform::File::UnsafeShowOpenWith(filepath)) {
|
||||
|
@ -223,7 +228,7 @@ void GetOpenPath(
|
|||
const QString &filter,
|
||||
Fn<void(OpenResult &&result)> callback,
|
||||
Fn<void()> failed) {
|
||||
InvokeQueued(QApplication::instance(), [=] {
|
||||
InvokeQueued(QCoreApplication::instance(), [=] {
|
||||
auto files = QStringList();
|
||||
auto remoteContent = QByteArray();
|
||||
Core::App().preventWindowActivation();
|
||||
|
@ -257,7 +262,7 @@ void GetOpenPaths(
|
|||
const QString &filter,
|
||||
Fn<void(OpenResult &&result)> callback,
|
||||
Fn<void()> failed) {
|
||||
InvokeQueued(QApplication::instance(), [=] {
|
||||
InvokeQueued(QCoreApplication::instance(), [=] {
|
||||
auto files = QStringList();
|
||||
auto remoteContent = QByteArray();
|
||||
Core::App().preventWindowActivation();
|
||||
|
@ -288,7 +293,7 @@ void GetWritePath(
|
|||
const QString &initialPath,
|
||||
Fn<void(QString &&result)> callback,
|
||||
Fn<void()> failed) {
|
||||
InvokeQueued(QApplication::instance(), [=] {
|
||||
InvokeQueued(QCoreApplication::instance(), [=] {
|
||||
auto file = QString();
|
||||
if (filedialogGetSaveFile(parent, file, caption, filter, initialPath)) {
|
||||
if (callback) {
|
||||
|
@ -306,7 +311,7 @@ void GetFolder(
|
|||
const QString &initialPath,
|
||||
Fn<void(QString &&result)> callback,
|
||||
Fn<void()> failed) {
|
||||
InvokeQueued(QApplication::instance(), [=] {
|
||||
InvokeQueued(QCoreApplication::instance(), [=] {
|
||||
auto files = QStringList();
|
||||
auto remoteContent = QByteArray();
|
||||
Core::App().preventWindowActivation();
|
||||
|
|
|
@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#include "core/mime_type.h"
|
||||
|
||||
#include <QtCore/QMimeDatabase>
|
||||
|
||||
namespace Core {
|
||||
|
||||
MimeType::MimeType(const QMimeType &type) : _typeStruct(type) {
|
||||
|
|
|
@ -25,6 +25,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/qthelp_regex.h"
|
||||
#include "ui/effects/animations.h"
|
||||
|
||||
#include <QtGui/QScreen>
|
||||
|
||||
namespace Core {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -7,6 +7,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtNetwork/QLocalServer>
|
||||
#include <QtNetwork/QLocalSocket>
|
||||
#include <QtCore/QAbstractNativeEventFilter>
|
||||
|
||||
namespace Core {
|
||||
|
||||
class Launcher;
|
||||
|
@ -52,9 +57,9 @@ public:
|
|||
ProxyData sandboxProxy() const;
|
||||
|
||||
static Sandbox &Instance() {
|
||||
Expects(QApplication::instance() != nullptr);
|
||||
Expects(QCoreApplication::instance() != nullptr);
|
||||
|
||||
return *static_cast<Sandbox*>(QApplication::instance());
|
||||
return *static_cast<Sandbox*>(QCoreApplication::instance());
|
||||
}
|
||||
|
||||
~Sandbox();
|
||||
|
|
|
@ -15,6 +15,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "platform/platform_info.h"
|
||||
#include "base/parse_helper.h"
|
||||
|
||||
#include <QtWidgets/QShortcut>
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonObject>
|
||||
#include <QtCore/QJsonArray>
|
||||
|
||||
namespace Shortcuts {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/window_session_controller.h"
|
||||
#include "settings/settings_intro.h"
|
||||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
extern "C" {
|
||||
#include <openssl/rsa.h>
|
||||
#include <openssl/pem.h>
|
||||
|
|
|
@ -30,6 +30,8 @@ extern "C" {
|
|||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#include <QtNetwork/QSslSocket>
|
||||
|
||||
#ifdef small
|
||||
#undef small
|
||||
#endif // small
|
||||
|
|
|
@ -13,6 +13,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/image/image_source.h"
|
||||
#include "ui/image/image.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace Data {
|
||||
namespace AutoDownload {
|
||||
namespace {
|
||||
|
|
|
@ -14,6 +14,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "lottie/lottie_animation.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtGui/QImageReader>
|
||||
|
||||
namespace Data {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_info.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace Dialogs {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -43,6 +43,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_channel.h"
|
||||
#include "data/data_user.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace AdminLog {
|
||||
namespace {
|
||||
|
||||
|
@ -1093,7 +1096,7 @@ void InnerWidget::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
_menu->addAction(
|
||||
actionText,
|
||||
[text = link->copyToClipboardText()] {
|
||||
QApplication::clipboard()->setText(text);
|
||||
QGuiApplication::clipboard()->setText(text);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1134,7 +1137,7 @@ void InnerWidget::saveDocumentToFile(DocumentData *document) {
|
|||
void InnerWidget::copyContextImage(PhotoData *photo) {
|
||||
if (!photo || photo->isNull() || !photo->loaded()) return;
|
||||
|
||||
QApplication::clipboard()->setImage(photo->large()->original());
|
||||
QGuiApplication::clipboard()->setImage(photo->large()->original());
|
||||
}
|
||||
|
||||
void InnerWidget::copySelectedText() {
|
||||
|
|
|
@ -50,6 +50,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_photo.h"
|
||||
#include "data/data_user.h"
|
||||
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kScrollDateHideTimeout = 1000;
|
||||
|
@ -1715,7 +1719,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
} else if (const auto contact = media->sharedContact()) {
|
||||
const auto phone = contact->phoneNumber;
|
||||
_menu->addAction(tr::lng_profile_copy_phone(tr::now), [=] {
|
||||
QApplication::clipboard()->setText(phone);
|
||||
QGuiApplication::clipboard()->setText(phone);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -1734,7 +1738,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
|
|||
_menu->addAction(
|
||||
actionText,
|
||||
[text = link->copyToClipboardText()] {
|
||||
QApplication::clipboard()->setText(text);
|
||||
QGuiApplication::clipboard()->setText(text);
|
||||
});
|
||||
} else if (item && item->hasDirectLink() && isUponSelected != 2 && isUponSelected != -2) {
|
||||
_menu->addAction(item->history()->peer->isMegagroup() ? tr::lng_context_copy_link(tr::now) : tr::lng_context_copy_post_link(tr::now), [=] {
|
||||
|
@ -1835,7 +1839,7 @@ void HistoryInner::savePhotoToFile(not_null<PhotoData*> photo) {
|
|||
void HistoryInner::copyContextImage(not_null<PhotoData*> photo) {
|
||||
if (photo->isNull() || !photo->loaded()) return;
|
||||
|
||||
QApplication::clipboard()->setImage(photo->large()->original());
|
||||
QGuiApplication::clipboard()->setImage(photo->large()->original());
|
||||
}
|
||||
|
||||
void HistoryInner::showStickerPackInfo(not_null<DocumentData*> document) {
|
||||
|
|
|
@ -28,6 +28,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_history.h"
|
||||
#include "window/window_session_controller.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
void HistoryMessageVia::create(UserId userId) {
|
||||
bot = Auth().data().user(userId);
|
||||
maxWidth = st::msgServiceNameFont->width(
|
||||
|
|
|
@ -13,6 +13,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_file_origin.h"
|
||||
#include "platform/platform_specific.h"
|
||||
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kCoordPrecision = 8;
|
||||
|
|
|
@ -41,6 +41,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_history.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kPinnedMessageTextLimit = 16;
|
||||
|
@ -212,7 +215,7 @@ void FastShareMessage(not_null<HistoryItem*> item) {
|
|||
+ qsl("?game=")
|
||||
+ game->shortName);
|
||||
|
||||
QApplication::clipboard()->setText(link);
|
||||
QGuiApplication::clipboard()->setText(link);
|
||||
|
||||
Ui::Toast::Show(tr::lng_share_game_link_copied(tr::now));
|
||||
}
|
||||
|
|
|
@ -98,6 +98,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_chat_helpers.h"
|
||||
#include "styles/style_info.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kMessagesPerPageFirst = 30;
|
||||
|
|
|
@ -38,6 +38,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_session.h"
|
||||
#include "apiwrap.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace HistoryView {
|
||||
namespace {
|
||||
|
||||
|
@ -77,7 +80,7 @@ void CopyImage(not_null<PhotoData*> photo) {
|
|||
return;
|
||||
}
|
||||
|
||||
QApplication::clipboard()->setImage(photo->large()->original());
|
||||
QGuiApplication::clipboard()->setImage(photo->large()->original());
|
||||
}
|
||||
|
||||
void ShowStickerPackInfo(not_null<DocumentData*> document) {
|
||||
|
@ -533,7 +536,7 @@ void AddCopyLinkAction(
|
|||
const auto text = link->copyToClipboardText();
|
||||
menu->addAction(
|
||||
action,
|
||||
[=] { QApplication::clipboard()->setText(text); });
|
||||
[=] { QGuiApplication::clipboard()->setText(text); });
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
@ -624,7 +627,7 @@ void CopyPostLink(FullMsgId itemId) {
|
|||
if (!item || !item->hasDirectLink()) {
|
||||
return;
|
||||
}
|
||||
QApplication::clipboard()->setText(
|
||||
QGuiApplication::clipboard()->setText(
|
||||
item->history()->session().api().exportDirectMessageLink(item));
|
||||
|
||||
const auto channel = item->history()->peer->asChannel();
|
||||
|
|
|
@ -37,6 +37,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_peer.h"
|
||||
#include "styles/style_history.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace HistoryView {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_info.h"
|
||||
#include "styles/style_profile.h"
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
namespace Info {
|
||||
|
||||
ContentWidget::ContentWidget(
|
||||
|
@ -113,7 +115,7 @@ void ContentWidget::setGeometryWithTopMoved(
|
|||
}
|
||||
if (!willBeResized) {
|
||||
QResizeEvent fake(size(), size());
|
||||
QApplication::sendEvent(this, &fake);
|
||||
QCoreApplication::sendEvent(this, &fake);
|
||||
}
|
||||
_topDelta = 0;
|
||||
}
|
||||
|
|
|
@ -33,6 +33,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "boxes/confirm_box.h"
|
||||
#include "core/file_utilities.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace Layout = Overview::Layout;
|
||||
|
||||
namespace Info {
|
||||
|
@ -1305,7 +1308,7 @@ void ListWidget::showContextMenu(
|
|||
_contextMenu->addAction(
|
||||
actionText,
|
||||
[text = link->copyToClipboardText()] {
|
||||
QApplication::clipboard()->setText(text);
|
||||
QGuiApplication::clipboard()->setText(text);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_info.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace Info {
|
||||
namespace Profile {
|
||||
namespace {
|
||||
|
@ -298,7 +301,7 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupInfo() {
|
|||
const auto link = Core::App().createInternalLinkFull(
|
||||
peer->userName());
|
||||
if (!link.isEmpty()) {
|
||||
QApplication::clipboard()->setText(link);
|
||||
QGuiApplication::clipboard()->setText(link);
|
||||
Ui::Toast::Show(tr::lng_username_copied(tr::now));
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -33,6 +33,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "observer_peer.h"
|
||||
#include "history/view/history_view_cursor_state.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace InlineBots {
|
||||
namespace Layout {
|
||||
namespace internal {
|
||||
|
|
|
@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QTranslator>
|
||||
|
||||
namespace Lang {
|
||||
|
||||
class Translator : public QTranslator {
|
||||
|
|
|
@ -100,6 +100,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_history.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kChannelGetDifferenceLimit = 100;
|
||||
|
|
|
@ -45,6 +45,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/window_main_menu.h"
|
||||
#include "window/window_session_controller.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
namespace {
|
||||
|
||||
// Code for testing languages is F7-F6-F7-F8
|
||||
|
|
|
@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#include "media/clip/media_clip_check_streaming.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtCore/QtEndian>
|
||||
|
||||
namespace Media {
|
||||
namespace Clip {
|
||||
|
|
|
@ -7,6 +7,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
class FileLocation;
|
||||
|
||||
namespace Media {
|
||||
|
|
|
@ -14,6 +14,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "mainwidget.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtCore/QAbstractEventDispatcher>
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
extern "C" {
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
|
|
|
@ -24,6 +24,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_media_player.h"
|
||||
#include "styles/style_history.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
namespace Media {
|
||||
namespace Player {
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "storage/cache/storage_cache_types.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace Media {
|
||||
namespace Streaming {
|
||||
namespace {
|
||||
|
|
|
@ -48,6 +48,14 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_mediaview.h"
|
||||
#include "styles/style_history.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QWindow>
|
||||
#include <QtGui/QScreen>
|
||||
|
||||
namespace Media {
|
||||
namespace View {
|
||||
namespace {
|
||||
|
@ -1301,13 +1309,13 @@ void OverlayWidget::onCopy() {
|
|||
_dropdown->hideAnimated(Ui::DropdownMenu::HideOption::IgnoreShow);
|
||||
if (_doc) {
|
||||
if (videoShown()) {
|
||||
QApplication::clipboard()->setImage(
|
||||
QGuiApplication::clipboard()->setImage(
|
||||
transformVideoFrame(videoFrame()));
|
||||
} else if (!_current.isNull()) {
|
||||
QApplication::clipboard()->setPixmap(_current);
|
||||
QGuiApplication::clipboard()->setPixmap(_current);
|
||||
}
|
||||
} else if (_photo && _photo->loaded()) {
|
||||
QApplication::clipboard()->setPixmap(_photo->large()->pix(fileOrigin()));
|
||||
QGuiApplication::clipboard()->setPixmap(_photo->large()->pix(fileOrigin()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "mtproto/connection_abstract.h"
|
||||
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
|
||||
namespace MTP {
|
||||
namespace internal {
|
||||
|
||||
|
|
|
@ -13,6 +13,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/unixtime.h"
|
||||
#include "base/openssl_help.h"
|
||||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonArray>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
extern "C" {
|
||||
#include <openssl/aes.h>
|
||||
} // extern "C"
|
||||
|
|
|
@ -9,6 +9,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "base/bytes.h"
|
||||
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
|
||||
namespace MTP {
|
||||
|
||||
struct ServiceWebRequest {
|
||||
|
|
|
@ -10,6 +10,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/openssl_help.h"
|
||||
#include "mtproto/rsa_public_key.h"
|
||||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonArray>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
namespace Passport {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -29,6 +29,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "storage/file_upload.h"
|
||||
#include "storage/file_download.h"
|
||||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonArray>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
namespace Passport {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_passport.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace Passport {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/crash_reports.h"
|
||||
#include "core/update_checker.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -32,6 +32,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "platform/mac/mac_utilities.h"
|
||||
#include "ui/widgets/input_fields.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#include <CoreFoundation/CFURL.h>
|
||||
#include <IOKit/IOKitLib.h>
|
||||
|
@ -77,7 +80,7 @@ public:
|
|||
LayerCreationChecker(NSView * __weak view, Fn<void()> callback)
|
||||
: _weakView(view)
|
||||
, _callback(std::move(callback)) {
|
||||
QApplication::instance()->installEventFilter(this);
|
||||
QCoreApplication::instance()->installEventFilter(this);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@ -384,7 +387,7 @@ bool MainWindow::Private::clipboardHasText() {
|
|||
auto currentChangeCount = static_cast<int>([_generalPasteboard changeCount]);
|
||||
if (_generalPasteboardChangeCount != currentChangeCount) {
|
||||
_generalPasteboardChangeCount = currentChangeCount;
|
||||
_generalPasteboardHasText = !QApplication::clipboard()->text().isEmpty();
|
||||
_generalPasteboardHasText = !QGuiApplication::clipboard()->text().isEmpty();
|
||||
}
|
||||
return _generalPasteboardHasText;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "history/history_location_manager.h"
|
||||
#include "platform/mac/mac_utilities.h"
|
||||
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
#include <cstdlib>
|
||||
#include <execinfo.h>
|
||||
#include <sys/xattr.h>
|
||||
|
|
|
@ -22,6 +22,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/timer.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
#include <QtWidgets/QApplication>
|
||||
|
||||
#include <Cocoa/Cocoa.h>
|
||||
#include <CoreFoundation/CFURL.h>
|
||||
#include <IOKit/IOKitLib.h>
|
||||
|
@ -207,7 +210,7 @@ void SetWatchingMediaKeys(bool watching) {
|
|||
bool IsApplicationActive() {
|
||||
return ApplicationIsActive
|
||||
? *ApplicationIsActive
|
||||
: (static_cast<QApplication*>(QApplication::instance())->activeWindow() != nullptr);
|
||||
: (static_cast<QApplication*>(QCoreApplication::instance())->activeWindow() != nullptr);
|
||||
}
|
||||
|
||||
void SetApplicationIcon(const QIcon &icon) {
|
||||
|
|
|
@ -14,6 +14,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/application.h"
|
||||
#include "core/crash_reports.h"
|
||||
|
||||
#include <QtWidgets/QFileDialog>
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <QtCore/QSettings>
|
||||
|
||||
#include <Shlwapi.h>
|
||||
#include <Windowsx.h>
|
||||
|
||||
|
|
|
@ -20,6 +20,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/themes/window_theme.h"
|
||||
#include "history/history.h"
|
||||
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtWidgets/QStyleFactory>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QWindow>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
#include <Shobjidl.h>
|
||||
|
|
|
@ -18,6 +18,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "storage/localstorage.h"
|
||||
#include "core/crash_reports.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
#include <QtGui/QDesktopServices>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
#include <Shobjidl.h>
|
||||
#include <shellapi.h>
|
||||
|
||||
|
@ -48,8 +53,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <intsafe.h>
|
||||
#include <guiddef.h>
|
||||
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
||||
#ifndef DCX_USESTYLE
|
||||
#define DCX_USESTYLE 0x00010000
|
||||
#endif
|
||||
|
|
|
@ -11,6 +11,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/widgets/shadow.h"
|
||||
#include "styles/style_window.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
|
||||
namespace Platform {
|
||||
|
||||
TitleWidget::TitleWidget(QWidget *parent) : Window::TitleWidget(parent)
|
||||
|
|
|
@ -11,6 +11,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "mainwindow.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
|
||||
namespace Platform {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "platform/win/wrapper_windows_h.h"
|
||||
|
||||
#include <QtCore/QAbstractNativeEventFilter>
|
||||
|
||||
namespace Platform {
|
||||
|
||||
class MainWindow;
|
||||
|
|
|
@ -32,6 +32,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_boxes.h"
|
||||
#include "styles/style_settings.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
|
||||
namespace Settings {
|
||||
namespace {
|
||||
|
||||
|
@ -114,7 +117,7 @@ void ShowMenu(
|
|||
const auto menu = new Ui::PopupMenu(parent);
|
||||
|
||||
menu->addAction(copyButton, [=] {
|
||||
QApplication::clipboard()->setText(text);
|
||||
QGuiApplication::clipboard()->setText(text);
|
||||
});
|
||||
menu->popup(QCursor::pos());
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/file_utilities.h"
|
||||
#include "styles/style_settings.h"
|
||||
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
namespace Settings {
|
||||
|
||||
void SetupLanguageButton(
|
||||
|
|
|
@ -36,6 +36,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_settings.h"
|
||||
#include "styles/style_boxes.h"
|
||||
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
namespace Settings {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -8,10 +8,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#define __HUGE
|
||||
|
||||
// Fix Google Breakpad build for Mac App Store version
|
||||
#ifdef Q_OS_MAC
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#endif // Q_OS_MAC
|
||||
#ifdef OS_MAC_STORE
|
||||
#define MAC_USE_BREAKPAD
|
||||
#endif // OS_MAC_STORE
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
|
@ -28,7 +27,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#pragma warning(disable:4180)
|
||||
#endif // __clang__ || _MSC_VER >= 1914
|
||||
|
||||
#include <QtCore/QtCore>
|
||||
#include <QtCore/QMap>
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic pop
|
||||
|
@ -36,12 +35,54 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#pragma warning(pop)
|
||||
#endif // __clang__ || _MSC_VER >= 1914
|
||||
|
||||
#ifdef OS_MAC_STORE
|
||||
#define MAC_USE_BREAKPAD
|
||||
#endif // OS_MAC_STORE
|
||||
#include <QtCore/QtMath>
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QPointer>
|
||||
#include <QtCore/QMutex>
|
||||
#include <QtCore/QReadWriteLock>
|
||||
#include <QtCore/QDataStream>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <QtCore/QThread>
|
||||
#include <QtCore/QByteArray>
|
||||
#include <QtCore/QChar>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtCore/QHash>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QMargins>
|
||||
#include <QtCore/QPair>
|
||||
#include <QtCore/QPoint>
|
||||
#include <QtCore/QRect>
|
||||
#include <QtCore/QRegularExpression>
|
||||
#include <QtCore/QSet>
|
||||
#include <QtCore/QSize>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QtCore/QVector>
|
||||
|
||||
#include <QtWidgets/QtWidgets>
|
||||
#include <QtNetwork/QtNetwork>
|
||||
#include <QtGui/QIcon>
|
||||
#include <QtGui/QImage>
|
||||
#include <QtGui/QImageReader>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QtEvents>
|
||||
#include <QtGui/QBrush>
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPainterPath>
|
||||
#include <QtGui/QPen>
|
||||
#include <QtGui/QRegion>
|
||||
#include <QtGui/QRgb>
|
||||
#include <QtGui/QFont>
|
||||
#include <QtGui/QFontInfo>
|
||||
|
||||
#include <QtWidgets/QWidget>
|
||||
#include <QtWidgets/QOpenGLWidget>
|
||||
|
||||
// Fix Google Breakpad build for Mac App Store version
|
||||
#ifdef Q_OS_MAC
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#endif // Q_OS_MAC
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
|
|
@ -12,6 +12,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/binary_guard.h"
|
||||
#include "data/data_file_origin.h"
|
||||
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
|
||||
class ApiWrap;
|
||||
|
||||
namespace Main {
|
||||
|
|
|
@ -25,6 +25,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "mainwindow.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kThumbnailQuality = 87;
|
||||
|
|
|
@ -39,6 +39,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_session.h"
|
||||
#include "history/history.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtCore/QtEndian>
|
||||
#include <QtCore/QDirIterator>
|
||||
|
||||
extern "C" {
|
||||
#include <openssl/evp.h>
|
||||
} // extern "C"
|
||||
|
|
|
@ -12,6 +12,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/mime_type.h"
|
||||
#include "ui/image/image_prepare.h"
|
||||
|
||||
#include <QtCore/QSemaphore>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace Storage {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/shortcuts.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtNetwork/QNetworkAccessManager>
|
||||
|
||||
namespace Support {
|
||||
namespace details {
|
||||
namespace {
|
||||
|
|
|
@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "base/binary_guard.h"
|
||||
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
|
||||
namespace Main {
|
||||
class Session;
|
||||
} // namespace Main
|
||||
|
|
|
@ -10,6 +10,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "window/themes/window_theme.h"
|
||||
#include "ui/rp_widget.h"
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
namespace Ui {
|
||||
namespace {
|
||||
|
||||
|
@ -243,7 +245,7 @@ CheckCaches *FrameCaches() {
|
|||
if (const auto instance = Instance.data()) {
|
||||
return instance;
|
||||
}
|
||||
const auto result = new CheckCaches(QGuiApplication::instance());
|
||||
const auto result = new CheckCaches(QCoreApplication::instance());
|
||||
Instance = result;
|
||||
const auto subscription = Ui::CreateChild<base::Subscription>(result);
|
||||
*subscription = Window::Theme::Background()->add_subscription([=](
|
||||
|
|
|
@ -16,6 +16,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/parse_helper.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtCore/QJsonDocument>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
namespace Ui {
|
||||
namespace Emoji {
|
||||
namespace {
|
||||
|
|
|
@ -15,6 +15,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "base/overload.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace {
|
||||
|
||||
constexpr auto kDocumentBaseCacheTag = 0x0000000000010000ULL;
|
||||
|
|
|
@ -15,6 +15,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "history/history.h"
|
||||
#include "main/main_session.h"
|
||||
|
||||
#include <QtCore/QBuffer>
|
||||
|
||||
namespace Images {
|
||||
|
||||
ImageSource::ImageSource(QImage &&data, const QByteArray &format)
|
||||
|
|
|
@ -7,6 +7,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#include "ui/rp_widget.h"
|
||||
|
||||
#include "core/qt_signal_producer.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
void ResizeFitChild(
|
||||
|
@ -81,6 +85,26 @@ rpl::producer<> RpWidgetMethods::alive() const {
|
|||
return eventStreams().alive.events();
|
||||
}
|
||||
|
||||
rpl::producer<> RpWidgetMethods::windowDeactivateEvents() const {
|
||||
const auto window = callGetWidget()->window()->windowHandle();
|
||||
Assert(window != nullptr);
|
||||
|
||||
return Core::QtSignalProducer(
|
||||
window,
|
||||
&QWindow::activeChanged
|
||||
) | rpl::filter([=] {
|
||||
return !window->isActive();
|
||||
});
|
||||
}
|
||||
|
||||
rpl::producer<> RpWidgetMethods::macWindowDeactivateEvents() const {
|
||||
#ifdef Q_OS_MAC
|
||||
return windowDeactivateEvents();
|
||||
#else // Q_OS_MAC
|
||||
return rpl::never<rpl::empty_value>();
|
||||
#endif // Q_OS_MAC
|
||||
}
|
||||
|
||||
rpl::lifetime &RpWidgetMethods::lifetime() {
|
||||
return _lifetime;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include <rpl/map.h>
|
||||
#include <rpl/distinct_until_changed.h>
|
||||
#include "base/unique_qptr.h"
|
||||
#include "core/qt_signal_producer.h"
|
||||
|
||||
namespace Ui {
|
||||
namespace details {
|
||||
|
@ -118,6 +117,8 @@ public:
|
|||
rpl::producer<bool> shownValue() const;
|
||||
rpl::producer<QRect> paintRequest() const;
|
||||
rpl::producer<> alive() const;
|
||||
rpl::producer<> windowDeactivateEvents() const;
|
||||
rpl::producer<> macWindowDeactivateEvents() const;
|
||||
|
||||
template <typename Error, typename Generator>
|
||||
void showOn(rpl::producer<bool, Error, Generator> &&shown) {
|
||||
|
@ -128,6 +129,7 @@ public:
|
|||
}, lifetime());
|
||||
}
|
||||
|
||||
|
||||
rpl::lifetime &lifetime();
|
||||
|
||||
virtual ~RpWidgetMethods() = default;
|
||||
|
@ -151,6 +153,8 @@ private:
|
|||
};
|
||||
|
||||
virtual void callSetVisible(bool visible) = 0;
|
||||
virtual QWidget *callGetWidget() = 0;
|
||||
virtual const QWidget *callGetWidget() const = 0;
|
||||
virtual QPointer<QObject> callCreateWeak() = 0;
|
||||
virtual QRect callGetGeometry() const = 0;
|
||||
virtual bool callIsHidden() const = 0;
|
||||
|
@ -179,25 +183,6 @@ public:
|
|||
visibilityChangedHook(wasVisible, !this->isHidden());
|
||||
}
|
||||
|
||||
auto windowDeactivateEvents() const {
|
||||
Expects(Widget::window()->windowHandle() != nullptr);
|
||||
|
||||
const auto window = Widget::window()->windowHandle();
|
||||
return Core::QtSignalProducer(
|
||||
window,
|
||||
&QWindow::activeChanged
|
||||
) | rpl::filter([=] {
|
||||
return !window->isActive();
|
||||
});
|
||||
}
|
||||
auto macWindowDeactivateEvents() const {
|
||||
#ifdef Q_OS_MAC
|
||||
return windowDeactivateEvents();
|
||||
#else // Q_OS_MAC
|
||||
return rpl::never<rpl::empty_value>();
|
||||
#endif // Q_OS_MAC
|
||||
}
|
||||
|
||||
~RpWidgetWrap() {
|
||||
base::take(_lifetime);
|
||||
base::take(_eventStreams);
|
||||
|
@ -218,6 +203,12 @@ private:
|
|||
void callSetVisible(bool visible) override {
|
||||
Self::setVisible(visible);
|
||||
}
|
||||
QWidget *callGetWidget() override {
|
||||
return this;
|
||||
}
|
||||
const QWidget *callGetWidget() const override {
|
||||
return this;
|
||||
}
|
||||
QPointer<QObject> callCreateWeak() override {
|
||||
return QPointer<QObject>((QObject*)this);
|
||||
}
|
||||
|
|
|
@ -14,6 +14,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "data/data_user.h"
|
||||
#include "data/data_session.h"
|
||||
|
||||
#include <QtCore/QStack>
|
||||
|
||||
namespace TextUtilities {
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -11,6 +11,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/application.h"
|
||||
#include "platform/platform_info.h"
|
||||
|
||||
#include <QtGui/QWindow>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QFontDatabase>
|
||||
|
||||
namespace Fonts {
|
||||
namespace {
|
||||
|
||||
|
@ -149,12 +153,12 @@ void SendPendingEventsRecursive(QWidget *target, bool parentHiddenFlag) {
|
|||
if (target->testAttribute(Qt::WA_PendingMoveEvent)) {
|
||||
target->setAttribute(Qt::WA_PendingMoveEvent, false);
|
||||
QMoveEvent e(target->pos(), QPoint());
|
||||
QApplication::sendEvent(target, &e);
|
||||
QCoreApplication::sendEvent(target, &e);
|
||||
}
|
||||
if (target->testAttribute(Qt::WA_PendingResizeEvent)) {
|
||||
target->setAttribute(Qt::WA_PendingResizeEvent, false);
|
||||
QResizeEvent e(target->size(), QSize());
|
||||
QApplication::sendEvent(target, &e);
|
||||
QCoreApplication::sendEvent(target, &e);
|
||||
}
|
||||
|
||||
auto removeVisibleFlag = [&] {
|
||||
|
|
|
@ -23,6 +23,14 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "main/main_session.h"
|
||||
#include "core/application.h"
|
||||
|
||||
#include <QtWidgets/QCommonStyle>
|
||||
#include <QtWidgets/QScrollBar>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QTextBlock>
|
||||
#include <QtGui/QTextDocumentFragment>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace Ui {
|
||||
namespace {
|
||||
|
||||
|
@ -1234,7 +1242,7 @@ void FlatInput::keyPressEvent(QKeyEvent *e) {
|
|||
} else if (e->key() == Qt::Key_E && e->modifiers().testFlag(Qt::ControlModifier)) {
|
||||
auto selected = selectedText();
|
||||
if (!selected.isEmpty() && echoMode() == QLineEdit::Normal) {
|
||||
QApplication::clipboard()->setText(selected, QClipboard::FindBuffer);
|
||||
QGuiApplication::clipboard()->setText(selected, QClipboard::FindBuffer);
|
||||
}
|
||||
#endif // Q_OS_MAC
|
||||
}
|
||||
|
@ -2696,7 +2704,7 @@ void InputField::keyPressEventInner(QKeyEvent *e) {
|
|||
const auto start = cursor.selectionStart();
|
||||
const auto end = cursor.selectionEnd();
|
||||
if (end > start) {
|
||||
QApplication::clipboard()->setText(
|
||||
QGuiApplication::clipboard()->setText(
|
||||
getTextWithTagsPart(start, end).text,
|
||||
QClipboard::FindBuffer);
|
||||
}
|
||||
|
@ -3957,7 +3965,7 @@ void MaskedInputField::keyPressEvent(QKeyEvent *e) {
|
|||
} else if (e->key() == Qt::Key_E && e->modifiers().testFlag(Qt::ControlModifier)) {
|
||||
auto selected = selectedText();
|
||||
if (!selected.isEmpty() && echoMode() == QLineEdit::Normal) {
|
||||
QApplication::clipboard()->setText(selected, QClipboard::FindBuffer);
|
||||
QGuiApplication::clipboard()->setText(selected, QClipboard::FindBuffer);
|
||||
}
|
||||
#endif // Q_OS_MAC
|
||||
}
|
||||
|
|
|
@ -11,6 +11,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/effects/animations.h"
|
||||
#include "styles/style_widgets.h"
|
||||
|
||||
#include <QtWidgets/QLineEdit>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
|
||||
class UserData;
|
||||
|
||||
namespace Ui {
|
||||
|
|
|
@ -13,6 +13,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "mainwindow.h"
|
||||
#include "lang/lang_keys.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QClipboard>
|
||||
#include <QtGui/QDrag>
|
||||
#include <QtCore/QMimeData>
|
||||
|
||||
namespace Ui {
|
||||
namespace {
|
||||
|
||||
|
@ -582,7 +587,7 @@ void FlatLabel::showContextMenu(QContextMenuEvent *e, ContextMenuReason reason)
|
|||
_contextMenu->addAction(
|
||||
actionText,
|
||||
[text = link->copyToClipboardText()] {
|
||||
QApplication::clipboard()->setText(text);
|
||||
QGuiApplication::clipboard()->setText(text);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
|
||||
#include "styles/style_widgets.h"
|
||||
|
||||
#include <QtWidgets/QMenu>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
class ToggleView;
|
||||
|
|
|
@ -15,6 +15,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "core/application.h"
|
||||
#include "lang/lang_keys.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
PopupMenu::PopupMenu(QWidget *parent, const style::PopupMenu &st)
|
||||
|
|
|
@ -7,6 +7,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
*/
|
||||
#include "ui/widgets/scroll_area.h"
|
||||
|
||||
#include <QtWidgets/QScrollBar>
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QGuiApplication>
|
||||
#include <QtGui/QWindow>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
// flick scroll taken from http://qt-project.org/doc/qt-4.8/demos-embedded-anomaly-src-flickcharm-cpp.html
|
||||
|
|
|
@ -11,6 +11,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "ui/effects/animations.h"
|
||||
#include "styles/style_widgets.h"
|
||||
|
||||
#include <QtWidgets/QScrollArea>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
enum class TouchScrollState {
|
||||
|
|
|
@ -23,6 +23,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
#include "styles/style_info.h"
|
||||
#include "styles/style_calls.h"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDesktopWidget>
|
||||
|
||||
namespace Ui {
|
||||
|
||||
SeparatePanel::SeparatePanel()
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue