mirror of https://github.com/procxx/kepka.git
Merge branch 'master' of https://github.com/telegramdesktop/tdesktop
This commit is contained in:
commit
8f87736523
|
@ -1196,6 +1196,10 @@ void SettingsInner::onUpdatePhotoCancel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsInner::onUpdatePhoto() {
|
void SettingsInner::onUpdatePhoto() {
|
||||||
|
if (!self()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
saveError();
|
saveError();
|
||||||
|
|
||||||
QStringList imgExtensions(cImgExtensions());
|
QStringList imgExtensions(cImgExtensions());
|
||||||
|
|
|
@ -25,6 +25,8 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include <QtCore/QtCore>
|
#include <QtCore/QtCore>
|
||||||
#include <QtWidgets/QtWidgets>
|
#include <QtWidgets/QtWidgets>
|
||||||
#include <QtNetwork/QtNetwork>
|
#include <QtNetwork/QtNetwork>
|
||||||
|
|
|
@ -650,6 +650,8 @@ MimeType mimeTypeForName(const QString &mime);
|
||||||
MimeType mimeTypeForFile(const QFileInfo &file);
|
MimeType mimeTypeForFile(const QFileInfo &file);
|
||||||
MimeType mimeTypeForData(const QByteArray &data);
|
MimeType mimeTypeForData(const QByteArray &data);
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
inline int rowscount(int fullCount, int countPerRow) {
|
inline int rowscount(int fullCount, int countPerRow) {
|
||||||
return (fullCount + countPerRow - 1) / countPerRow;
|
return (fullCount + countPerRow - 1) / countPerRow;
|
||||||
}
|
}
|
||||||
|
|
|
@ -123,6 +123,7 @@
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>
|
||||||
</IgnoreSpecificDefaultLibraries>
|
</IgnoreSpecificDefaultLibraries>
|
||||||
|
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Deploy|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Deploy|Win32'">
|
||||||
|
@ -154,6 +155,7 @@
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>
|
||||||
</IgnoreSpecificDefaultLibraries>
|
</IgnoreSpecificDefaultLibraries>
|
||||||
|
<AdditionalOptions>/ignore:4099 %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -43,6 +43,19 @@ index 8b2b988..9de806d 100644
|
||||||
virtual void setFilter() = 0;
|
virtual void setFilter() = 0;
|
||||||
virtual void selectNameFilter(const QString &filter) = 0;
|
virtual void selectNameFilter(const QString &filter) = 0;
|
||||||
virtual QString selectedNameFilter() const = 0;
|
virtual QString selectedNameFilter() const = 0;
|
||||||
|
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp
|
||||||
|
index b54e85a..49ccec6 100644
|
||||||
|
--- a/src/gui/kernel/qwindow.cpp
|
||||||
|
+++ b/src/gui/kernel/qwindow.cpp
|
||||||
|
@@ -2460,7 +2460,7 @@ void QWindowPrivate::setCursor(const QCursor *newCursor)
|
||||||
|
void QWindowPrivate::applyCursor()
|
||||||
|
{
|
||||||
|
Q_Q(QWindow);
|
||||||
|
- if (platformWindow) {
|
||||||
|
+ if (platformWindow && q->screen() && q->screen()->handle()) {
|
||||||
|
if (QPlatformCursor *platformCursor = q->screen()->handle()->cursor()) {
|
||||||
|
QCursor *c = QGuiApplication::overrideCursor();
|
||||||
|
if (!c && hasCursor)
|
||||||
diff --git a/src/gui/painting/qpaintengine_p.h b/src/gui/painting/qpaintengine_p.h
|
diff --git a/src/gui/painting/qpaintengine_p.h b/src/gui/painting/qpaintengine_p.h
|
||||||
index c58662e..432f2cd 100644
|
index c58662e..432f2cd 100644
|
||||||
--- a/src/gui/painting/qpaintengine_p.h
|
--- a/src/gui/painting/qpaintengine_p.h
|
||||||
|
@ -11662,7 +11675,7 @@ index cc697ba..e1d9bce 100644
|
||||||
// but that cannot handle a Windows command line [yet].
|
// but that cannot handle a Windows command line [yet].
|
||||||
command.replace(QStringLiteral("%1"), url.toString(QUrl::FullyEncoded));
|
command.replace(QStringLiteral("%1"), url.toString(QUrl::FullyEncoded));
|
||||||
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp
|
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp
|
||||||
index 288f73c..73230ed 100644
|
index 288f73c..c859833 100644
|
||||||
--- a/src/plugins/platforms/windows/qwindowswindow.cpp
|
--- a/src/plugins/platforms/windows/qwindowswindow.cpp
|
||||||
+++ b/src/plugins/platforms/windows/qwindowswindow.cpp
|
+++ b/src/plugins/platforms/windows/qwindowswindow.cpp
|
||||||
@@ -973,7 +973,8 @@ void QWindowsWindow::destroyWindow()
|
@@ -973,7 +973,8 @@ void QWindowsWindow::destroyWindow()
|
||||||
|
@ -11703,6 +11716,15 @@ index 288f73c..73230ed 100644
|
||||||
static inline bool testShowWithoutActivating(const QWindow *window)
|
static inline bool testShowWithoutActivating(const QWindow *window)
|
||||||
{
|
{
|
||||||
// QWidget-attribute Qt::WA_ShowWithoutActivating .
|
// QWidget-attribute Qt::WA_ShowWithoutActivating .
|
||||||
|
@@ -1626,7 +1642,7 @@ void QWindowsWindow::setWindowState(Qt::WindowState state)
|
||||||
|
|
||||||
|
bool QWindowsWindow::isFullScreen_sys() const
|
||||||
|
{
|
||||||
|
- return window()->isTopLevel()
|
||||||
|
+ return window()->isTopLevel() && window()->screen()
|
||||||
|
&& geometry_sys() == QWindowsScaling::mapToNative(window()->screen()->geometry());
|
||||||
|
}
|
||||||
|
|
||||||
diff --git a/src/plugins/platforms/windows/qwindowswindow.h b/src/plugins/platforms/windows/qwindowswindow.h
|
diff --git a/src/plugins/platforms/windows/qwindowswindow.h b/src/plugins/platforms/windows/qwindowswindow.h
|
||||||
index fff90b4..47375a7 100644
|
index fff90b4..47375a7 100644
|
||||||
--- a/src/plugins/platforms/windows/qwindowswindow.h
|
--- a/src/plugins/platforms/windows/qwindowswindow.h
|
||||||
|
|
Loading…
Reference in New Issue