Rebase patches
This commit is contained in:
parent
d48e9598d2
commit
98f737ba5a
@ -1,6 +1,7 @@
|
|||||||
diff -up qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h.glibc qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h
|
diff --git a/mkspecs/linux-g++/qplatformdefs.h b/mkspecs/linux-g++/qplatformdefs.h
|
||||||
--- qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h.glibc 2018-06-15 09:29:31.000000000 +0200
|
index 13523f07..d3245316 100644
|
||||||
+++ qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h 2018-07-26 15:40:56.887961897 +0200
|
--- a/mkspecs/linux-g++/qplatformdefs.h
|
||||||
|
+++ b/mkspecs/linux-g++/qplatformdefs.h
|
||||||
@@ -72,7 +72,9 @@
|
@@ -72,7 +72,9 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
@ -10,10 +11,11 @@ diff -up qtbase-everywhere-src-5.11.1/mkspecs/linux-g++/qplatformdefs.h.glibc qt
|
|||||||
+#endif
|
+#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
|
||||||
diff -up qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp.glibc qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp
|
diff --git a/src/corelib/io/qfilesystemengine_unix.cpp b/src/corelib/io/qfilesystemengine_unix.cpp
|
||||||
--- qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp.glibc 2018-06-15 09:29:31.000000000 +0200
|
index deb4a9f2..d03cf86c 100644
|
||||||
+++ qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp 2018-07-26 16:34:54.346840184 +0200
|
--- a/src/corelib/io/qfilesystemengine_unix.cpp
|
||||||
|
+++ b/src/corelib/io/qfilesystemengine_unix.cpp
|
||||||
@@ -50,7 +50,9 @@
|
@@ -50,7 +50,9 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <stdlib.h> // for realpath()
|
#include <stdlib.h> // for realpath()
|
||||||
@ -24,30 +26,18 @@ diff -up qtbase-everywhere-src-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp.
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@@ -91,7 +93,9 @@ extern "C" NSString *NSTemporaryDirector
|
@@ -105,12 +107,12 @@ extern "C" NSString *NSTemporaryDirectory();
|
||||||
# include <sys/syscall.h>
|
|
||||||
# include <sys/sendfile.h>
|
|
||||||
# include <linux/fs.h>
|
|
||||||
+#if 0
|
|
||||||
# include <linux/stat.h>
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
// in case linux/fs.h is too old and doesn't define it:
|
|
||||||
#ifndef FICLONE
|
|
||||||
@@ -105,13 +109,13 @@ extern "C" NSString *NSTemporaryDirector
|
|
||||||
# undef SYS_renameat2
|
|
||||||
# undef SYS_statx
|
# undef SYS_statx
|
||||||
# undef STATX_BASIC_STATS
|
# undef STATX_BASIC_STATS
|
||||||
-# else
|
# else
|
||||||
-# if !QT_CONFIG(renameat2) && defined(SYS_renameat2)
|
-# if !QT_CONFIG(renameat2) && defined(SYS_renameat2)
|
||||||
+# else
|
|
||||||
+# if 0 && !QT_CONFIG(renameat2) && defined(SYS_renameat2)
|
+# if 0 && !QT_CONFIG(renameat2) && defined(SYS_renameat2)
|
||||||
static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
|
static int renameat2(int oldfd, const char *oldpath, int newfd, const char *newpath, unsigned flags)
|
||||||
{ return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
|
{ return syscall(SYS_renameat2, oldfd, oldpath, newfd, newpath, flags); }
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
-# if !QT_CONFIG(statx) && defined(SYS_statx)
|
-# if !QT_CONFIG(statx) && defined(SYS_statx)
|
||||||
+# if 0 && !QT_CONFIG(statx) && defined(SYS_statx)
|
+# if 0 && !QT_CONFIG(statx) && defined(SYS_statx)
|
||||||
|
# include <linux/stat.h>
|
||||||
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
static int statx(int dirfd, const char *pathname, int flag, unsigned mask, struct statx *statxbuf)
|
||||||
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
|
{ return syscall(SYS_statx, dirfd, pathname, flag, mask, statxbuf); }
|
||||||
# elif !QT_CONFIG(statx) && !defined(SYS_statx)
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp
|
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp
|
||||||
index ec0f9ba..6d0d7a6 100644
|
index 7f2793b2..3ff6a924 100644
|
||||||
--- a/src/plugins/platforms/xcb/qxcbscreen.cpp
|
--- a/src/plugins/platforms/xcb/qxcbscreen.cpp
|
||||||
+++ b/src/plugins/platforms/xcb/qxcbscreen.cpp
|
+++ b/src/plugins/platforms/xcb/qxcbscreen.cpp
|
||||||
@@ -747,7 +747,7 @@ void QXcbScreen::updateGeometry(const QRect &geometry, uint8_t rotation)
|
@@ -753,7 +753,7 @@ void QXcbScreen::updateGeometry(const QRect &geometry, uint8_t rotation)
|
||||||
m_sizeMillimeters = sizeInMillimeters(geometry.size(), virtualDpi());
|
m_sizeMillimeters = sizeInMillimeters(geometry.size(), m_virtualDesktop->dpi());
|
||||||
|
|
||||||
qreal dpi = geometry.width() / physicalSize().width() * qreal(25.4);
|
qreal dpi = geometry.width() / physicalSize().width() * qreal(25.4);
|
||||||
- m_pixelDensity = qMax(1, qRound(dpi/96));
|
- m_pixelDensity = qMax(1, qRound(dpi/96));
|
||||||
|
Loading…
Reference in New Issue
Block a user