mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Remove many includes from stdafx.pch.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user