Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qt5-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
obextra
qt5-base
Commits
2a0b506a
Commit
2a0b506a
authored
7 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
upgpkg : 5.10.1-2
parent
893ea260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
PKGBUILD
+4
-11
4 additions, 11 deletions
PKGBUILD
qtbug-59261.patch
+0
-65
0 additions, 65 deletions
qtbug-59261.patch
qtbug-65235.patch
+0
-70
0 additions, 70 deletions
qtbug-65235.patch
rebuild.list
+2
-2
2 additions, 2 deletions
rebuild.list
with
6 additions
and
148 deletions
PKGBUILD
+
4
−
11
View file @
2a0b506a
...
...
@@ -5,9 +5,9 @@
pkgbase
=
qt5-base
pkgname
=(
qt5-base qt5-xcb-private-headers
)
_qtver
=
5.10.
0
_qtver
=
5.10.
1
pkgver
=
${
_qtver
/-/
}
pkgrel
=
5
pkgrel
=
2
arch
=(
x86_64
)
url
=
'http://qt-project.org/'
license
=(
'GPL3'
'LGPL3'
'FDL'
'custom'
)
...
...
@@ -27,12 +27,8 @@ optdepends=('qt5-svg: to use SVG icon themes'
conflicts
=(
'qtchooser'
)
groups
=(
'qt'
'qt5'
)
_pkgfqn
=
"
${
pkgbase
/5-/
}
-everywhere-src-
${
_qtver
}
"
source
=(
"http://download.qt.io/official_releases/qt/
${
pkgver
%.*
}
/
${
_qtver
}
/submodules/
${
_pkgfqn
}
.tar.xz"
qtbug-65235.patch::
"https://github.com/qt/qtbase/commit/79d78d81.patch"
qtbug-59261.patch::
"https://github.com/qt/qtbase/commit/d1960360.patch"
)
sha256sums
=(
'fd5578cd320a13617c12cf2b19439386b203d6d45548e855f94e07be9829f762'
'32d71a129adad13fc90e2ec9b15d0a21d9dd3f02bd8094882b18e4451d39ffe7'
'91c89eb302316c32cbe5018ac92d8fcd96201eed3e6e11cb40f410f45cb17138'
)
source
=(
"http://download.qt.io/official_releases/qt/
${
pkgver
%.*
}
/
${
_qtver
}
/submodules/
${
_pkgfqn
}
.tar.xz"
)
sha256sums
=(
'd8660e189caa5da5142d5894d328b61a4d3ee9750b76d61ad74e4eee8765a969'
)
validpgpkeys
=(
'6DD4217456569BA711566AC7F06E8FDE7B45DAAC'
)
# Eric Vidal
prepare
()
{
...
...
@@ -52,9 +48,6 @@ prepare() {
# Fix missing private includes https://bugreports.qt.io/browse/QTBUG-37417
sed
-e
'/CMAKE_NO_PRIVATE_INCLUDES\ \=\ true/d'
-i
mkspecs/features/create_cmake.prf
# https://bugreports.qt.io/browse/QTBUG-65235
patch
-p1
-i
../qtbug-65235.patch
patch
-p1
-i
../qtbug-59261.patch
# https://bugreports.qt.io/browse/QTBUG-59261
}
build
()
{
...
...
This diff is collapsed.
Click to expand it.
qtbug-59261.patch
deleted
100644 → 0
+
0
−
65
View file @
893ea260
From d196036024697a75868c1f1626525710495ca428 Mon Sep 17 00:00:00 2001
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
Date: Thu, 23 Nov 2017 14:25:04 +0100
Subject: [PATCH] Avoid providing bad pixelDeltas on X11
With libinput we now get a hardcoded resolution that is unrelated to
the hardware. So avoid using that as a real pixel delta and document
pixel deltas as being driver specific and unreliable on X11.
Task-number: QTBUG-59261
Change-Id: I9fe86d80e7ccd290ed2e4091d7eafa52cb537d34
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Marco Martin <mart@kde.org>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
---
src/gui/kernel/qevent.cpp | 1 +
src/plugins/platforms/xcb/qxcbconnection_xi2.cpp | 14 ++++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp
index 06d52aa78d..c68f9afa56 100644
--- a/src/gui/kernel/qevent.cpp
+++ b/src/gui/kernel/qevent.cpp
@@ -971,6 +971,7 @@
QWheelEvent::QWheelEvent(const QPointF &pos, const QPointF& globalPos,
\li scrolling is about to begin, but the distance did not yet change (Qt::ScrollBegin),
\li or scrolling has ended and the distance did not change anymore (Qt::ScrollEnd).
\endlist
+ \note On X11 this value is driver specific and unreliable, use angleDelta() instead
*/
/*!
diff --git a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
index d1d97affe8..94f543fd39 100644
--- a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
+++ b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
@@ -953,10 +953,12 @@
void QXcbConnection::xi2HandleScrollEvent(void *event, ScrollingDevice &scrollin
double delta = scrollingDevice.lastScrollPosition.y() - value;
scrollingDevice.lastScrollPosition.setY(value);
angleDelta.setY((delta / scrollingDevice.verticalIncrement) * 120);
- // We do not set "pixel" delta if it is only measured in ticks.
- if (scrollingDevice.verticalIncrement > 1)
+ // With most drivers the increment is 1 for wheels.
+ // For libinput it is hardcoded to a useless 15.
+ // For a proper touchpad driver it should be in the same order of magnitude as 120
+ if (scrollingDevice.verticalIncrement > 15)
rawDelta.setY(delta);
- else if (scrollingDevice.verticalIncrement < -1)
+ else if (scrollingDevice.verticalIncrement < -15)
rawDelta.setY(-delta);
}
}
@@ -965,10 +967,10 @@
void QXcbConnection::xi2HandleScrollEvent(void *event, ScrollingDevice &scrollin
double delta = scrollingDevice.lastScrollPosition.x() - value;
scrollingDevice.lastScrollPosition.setX(value);
angleDelta.setX((delta / scrollingDevice.horizontalIncrement) * 120);
- // We do not set "pixel" delta if it is only measured in ticks.
- if (scrollingDevice.horizontalIncrement > 1)
+ // See comment under vertical
+ if (scrollingDevice.horizontalIncrement > 15)
rawDelta.setX(delta);
- else if (scrollingDevice.horizontalIncrement < -1)
+ else if (scrollingDevice.horizontalIncrement < -15)
rawDelta.setX(-delta);
}
}
This diff is collapsed.
Click to expand it.
qtbug-65235.patch
deleted
100644 → 0
+
0
−
70
View file @
893ea260
From 79d78d814acad4e183e281aea9b131f396abe3fb Mon Sep 17 00:00:00 2001
From: Gatis Paeglis <gatis.paeglis@qt.io>
Date: Thu, 7 Dec 2017 11:49:49 +0100
Subject: [PATCH] xcb: verify if xrandr present before using xcb_randr* APIs
Not doing so might break the connection. We have had similar
issues before, e.g. QTBUG-45312.
Change-Id: I95f15d24773fc92b052578bd72d1ba264d0a5f63
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Uli Schlachter <psychon@znc.in>
---
src/plugins/platforms/xcb/qxcbscreen.cpp | 35 +++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp
index ec0f9ba561..67c96b2d80 100644
--- a/src/plugins/platforms/xcb/qxcbscreen.cpp
+++ b/src/plugins/platforms/xcb/qxcbscreen.cpp
@@ -446,17 +446,24 @@
QXcbScreen::QXcbScreen(QXcbConnection *connection, QXcbVirtualDesktop *virtualDe
m_cursor = new QXcbCursor(connection, this);
- // Parse EDID
- if (m_edid.parse(getEdid()))
- qCDebug(lcQpaScreen, "EDID data for output \"%s\": identifier '%s', manufacturer '%s', model '%s', serial '%s', physical size: %.2fx%.2f",
- name().toLatin1().constData(),
- m_edid.identifier.toLatin1().constData(),
- m_edid.manufacturer.toLatin1().constData(),
- m_edid.model.toLatin1().constData(),
- m_edid.serialNumber.toLatin1().constData(),
- m_edid.physicalSize.width(), m_edid.physicalSize.height());
- else
- qCDebug(lcQpaScreen) << "Failed to parse EDID data for output" << name(); // keep this debug, not warning
+ if (connection->hasXRandr()) { // Parse EDID
+ QByteArray edid = getEdid();
+ if (m_edid.parse(edid)) {
+ qCDebug(lcQpaScreen, "EDID data for output \"%s\": identifier '%s', manufacturer '%s',"
+ "model '%s', serial '%s', physical size: %.2fx%.2f",
+ name().toLatin1().constData(),
+ m_edid.identifier.toLatin1().constData(),
+ m_edid.manufacturer.toLatin1().constData(),
+ m_edid.model.toLatin1().constData(),
+ m_edid.serialNumber.toLatin1().constData(),
+ m_edid.physicalSize.width(), m_edid.physicalSize.height());
+ } else {
+ // This property is defined by the xrandr spec. Parsing failure indicates a valid error,
+ // but keep this as debug, for details see 4f515815efc318ddc909a0399b71b8a684962f38.
+ qCDebug(lcQpaScreen) << "Failed to parse EDID data for output" << name() <<
+ "edid data: " << edid;
+ }
+ }
}
QXcbScreen::~QXcbScreen()
@@ -899,9 +906,13 @@
QByteArray QXcbScreen::getOutputProperty(xcb_atom_t atom) const
QByteArray QXcbScreen::getEdid() const
{
+ QByteArray result;
+ if (!connection()->hasXRandr())
+ return result;
+
// Try a bunch of atoms
xcb_atom_t atom = connection()->internAtom("EDID");
- QByteArray result = getOutputProperty(atom);
+ result = getOutputProperty(atom);
if (result.isEmpty()) {
atom = connection()->internAtom("EDID_DATA");
result = getOutputProperty(atom);
This diff is collapsed.
Click to expand it.
rebuild.list
+
2
−
2
View file @
2a0b506a
### Rebuild only for minor version updates
calibre
gcin
googlemaps
kwin
lxqt-qtplugin
plasma-framework
...
...
@@ -17,8 +16,9 @@ deepin-qt5dxcb-plugin
dtkwidget
dtkwm
fcitx-qt5
googlemaps
libqtxdg
pyqt5
pyqt5
-common
qt5-styleplugins
qt5-webkit
skrooge
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment