qtbase-opensource-src.git
4 years agoMerge version 5.15.2+dfsg-10+rpi1 and 5.15.2+dfsg-12 to produce 5.15.2+dfsg-12+rpi1 archive/raspbian/5.15.2+dfsg-12+rpi1 raspbian/5.15.2+dfsg-12+rpi1
Raspbian automatic forward porter [Tue, 28 Sep 2021 14:44:34 +0000 (15:44 +0100)]
Merge version 5.15.2+dfsg-10+rpi1 and 5.15.2+dfsg-12 to produce 5.15.2+dfsg-12+rpi1

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-12) import into refs/heads/workingbranch
Lisandro Damián Nicanor Pérez Meyer [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-12) import into refs/heads/workingbranch

4 years agoproperly cast types for libglvnd 1.3.4
Rex Dieter [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
properly cast types for libglvnd 1.3.4

Origin: https://src.fedoraproject.org/rpms/qt5-qtbase/blob/rawhide/f/qtbase-everywhere-src-5.15.2-libglvnd.patch

Gbp-Pq: Name cast_types_for_egl_x11_test.diff

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

4 years agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

4 years agoInitial GNU/kFreeBSD support
Pino Toscano [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

4 years ago[PATCH] xcb: add a timeout control when reading INCR property
Liang Qi [Wed, 7 Jul 2021 11:19:14 +0000 (13:19 +0200)]
[PATCH] xcb: add a timeout control when reading INCR property

For the first call of QXcbClipboard::clipboardReadProperty()
inside of clipboardReadIncrementalProperty() in getSelection(),
it will get a XCB_NONE reply before the contents arrived via
property change. Then we give a chance to read more.

Manually tested with following setups:
* examples/widgets/mainwindows/application with gvim(gtk3)
* examples/widgets/widgets/imageviewer with GIMP 2.10.18(based on
gtk2) and GIMP 2.99.6(based on gtk3 via flatpak)

Fixes: QTBUG-56595
Pick-to: 5.12 5.15 6.1 6.2
Done-With: JiDe Zhang <zhangjide@uniontech.com>
Change-Id: Ib45f08464d39ad79137b1da99808c89b7dca2d08
Reviewed-by: JiDe Zhang <zhangjide@uniontech.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Gbp-Pq: Name xcb_add_a_timeout_control_when_reading_INCR_property.diff

4 years agofix QTextFormat::FullWidthSelection for right-to-left text layouts
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff

4 years agoremove the version number checks in favor of actual functionality
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
remove the version number checks in favor of actual functionality

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=211369133cf40b2f
Last-Update: 2021-08-10

MariaDB library version 3.2 no longer returns the server version in the
10.x range but the library version itself, which is lower than 4.x. That
meant we concluded the server did not support prepared statements.

And because of the lack of prepared statements, all QDateTime
conversions failed, because of the timezone. I don't know if this was
intended or what, but it's a side issue.

Gbp-Pq: Name mysql_remove_version_checks.diff

4 years agoQPushButton/fusion style: don't ignore QIcon::On icon
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff

4 years agofix placement of placeholder text in QLineEdits with action icons
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
fix placement of placeholder text in QLineEdits with action icons

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0e6b31019f01c72e
Last-Update: 2021-08-10

After dc794f7622bc00f7ca50fab65d6965695d6d2972, side widgets only got
space if they were not fading out, but the logic was not correctly
accounting for side widgets that never fade, such as buttons added via
QLineEdit::addAction.

Fix this to give visible widgets space, unless they are fading out. That
was the intent of the original change. Rename the variable to make its
purpose clearer, and reset it at the end of the fade-out animation.

Add a much-needed test that relies on private APIs to verify that the
effective margins are calculated correctly.

Gbp-Pq: Name fix-placement-of-placeholder-text-in-QLineEdits-with-action-icons.diff

4 years agofix misplacement of placeholder text in QLineEdit with RTL content
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
fix misplacement of placeholder text in QLineEdit with RTL content

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=dc794f7622bc00f7
Last-Update: 2021-06-16

The placeholder text was rendered in the wrong position after clicking
on the clear button in a QLineEdit with right-to-left content. The
button was still taking up space while it was fading out, so the first
paintEvent rendered the placeholder with space reserved for the clear
button. Once the button gets hidden, no new update was issued, so
garbage was left behind.

Fix this by not giving a fading-out clear button any margin space. The
result of this is that the placeholder text is visible underneath the
fading-out clear button. This is preferable to the placeholder text
being first rendered next to the fading-out clear button, and then
popping to the edge when the clear button is hidden (which would have
been the result of issuing a complete update for the line edit at the
end of the fade-out animation).

Gbp-Pq: Name fix-misplacement-of-placeholder-text-in-QLineEdit.diff

4 years ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

4 years agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

4 years agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

4 years agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

4 years agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

4 years agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

4 years agoqtbase-opensource-src (5.15.2+dfsg-12) unstable; urgency=medium
Lisandro Damián Nicanor Pérez Meyer [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
qtbase-opensource-src (5.15.2+dfsg-12) unstable; urgency=medium

  * Add a patch to properly cast types for EGL X11 tests (Closes: #994906).

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-12]

4 years agoImport qtbase-opensource-src_5.15.2+dfsg-12.debian.tar.xz
Lisandro Damián Nicanor Pérez Meyer [Thu, 23 Sep 2021 13:02:33 +0000 (14:02 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-12.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-12 qtbase-opensource-src_5.15.2+dfsg-12.debian.tar.xz]

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-10+rpi1) import into refs/heads/workingbranch
Raspbian forward porter [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-10+rpi1) import into refs/heads/workingbranch

4 years agoModify configure.json to disable neon.
Peter Michael Green [Sun, 3 Sep 2017 22:55:28 +0000 (22:55 +0000)]
Modify configure.json to disable neon.

Gbp-Pq: Name modify-configure.json-to-disable-neon.patch

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

4 years agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

4 years agoInitial GNU/kFreeBSD support
Pino Toscano [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

4 years agofix QTextFormat::FullWidthSelection for right-to-left text layouts
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff

4 years agoremove the version number checks in favor of actual functionality
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
remove the version number checks in favor of actual functionality

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=211369133cf40b2f
Last-Update: 2021-08-10

MariaDB library version 3.2 no longer returns the server version in the
10.x range but the library version itself, which is lower than 4.x. That
meant we concluded the server did not support prepared statements.

And because of the lack of prepared statements, all QDateTime
conversions failed, because of the timezone. I don't know if this was
intended or what, but it's a side issue.

Gbp-Pq: Name mysql_remove_version_checks.diff

4 years agoQPushButton/fusion style: don't ignore QIcon::On icon
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff

4 years agofix placement of placeholder text in QLineEdits with action icons
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
fix placement of placeholder text in QLineEdits with action icons

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0e6b31019f01c72e
Last-Update: 2021-08-10

After dc794f7622bc00f7ca50fab65d6965695d6d2972, side widgets only got
space if they were not fading out, but the logic was not correctly
accounting for side widgets that never fade, such as buttons added via
QLineEdit::addAction.

Fix this to give visible widgets space, unless they are fading out. That
was the intent of the original change. Rename the variable to make its
purpose clearer, and reset it at the end of the fade-out animation.

Add a much-needed test that relies on private APIs to verify that the
effective margins are calculated correctly.

Gbp-Pq: Name fix-placement-of-placeholder-text-in-QLineEdits-with-action-icons.diff

4 years agofix misplacement of placeholder text in QLineEdit with RTL content
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
fix misplacement of placeholder text in QLineEdit with RTL content

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=dc794f7622bc00f7
Last-Update: 2021-06-16

The placeholder text was rendered in the wrong position after clicking
on the clear button in a QLineEdit with right-to-left content. The
button was still taking up space while it was fading out, so the first
paintEvent rendered the placeholder with space reserved for the clear
button. Once the button gets hidden, no new update was issued, so
garbage was left behind.

Fix this by not giving a fading-out clear button any margin space. The
result of this is that the placeholder text is visible underneath the
fading-out clear button. This is preferable to the placeholder text
being first rendered next to the fading-out clear button, and then
popping to the edge when the clear button is hidden (which would have
been the result of issuing a complete update for the line edit at the
end of the fade-out animation).

Gbp-Pq: Name fix-misplacement-of-placeholder-text-in-QLineEdit.diff

4 years ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

4 years agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

4 years agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

4 years agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

4 years agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

4 years agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

4 years agoqtbase-opensource-src (5.15.2+dfsg-10+rpi1) bookworm-staging; urgency=medium
Raspbian forward porter [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
qtbase-opensource-src (5.15.2+dfsg-10+rpi1) bookworm-staging; urgency=medium

  [changes introduced in 5.6.1+dfsg-2+rpi1] by Peter Michael Green]
  * Partially fix clean target.

  [changes introduced in 5.9.1+dfsg-9+rpi1 by Peter Michael Green]
  * Disable neon (-no-neon no longer seems to work, so edit configure.json instead)

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-10+rpi1]

4 years agoImport qtbase-opensource-src_5.15.2+dfsg-10+rpi1.debian.tar.xz
Raspbian forward porter [Tue, 24 Aug 2021 13:28:22 +0000 (14:28 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-10+rpi1.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-10+rpi1 qtbase-opensource-src_5.15.2+dfsg-10+rpi1.debian.tar.xz]

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-10) import into refs/heads/workingbranch
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-10) import into refs/heads/workingbranch

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

4 years agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

4 years agoInitial GNU/kFreeBSD support
Pino Toscano [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

4 years agofix QTextFormat::FullWidthSelection for right-to-left text layouts
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff

4 years agoremove the version number checks in favor of actual functionality
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
remove the version number checks in favor of actual functionality

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=211369133cf40b2f
Last-Update: 2021-08-10

MariaDB library version 3.2 no longer returns the server version in the
10.x range but the library version itself, which is lower than 4.x. That
meant we concluded the server did not support prepared statements.

And because of the lack of prepared statements, all QDateTime
conversions failed, because of the timezone. I don't know if this was
intended or what, but it's a side issue.

Gbp-Pq: Name mysql_remove_version_checks.diff

4 years agoQPushButton/fusion style: don't ignore QIcon::On icon
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
QPushButton/fusion style: don't ignore QIcon::On icon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=e9ccdf4d84157173
Last-Update: 2021-08-10

The fusion style did ignore the QIcon::On icon because it reset
State_On to avoid the visual shift of a pressed button.
But it's not needed to reset this flag - the shift does not happen
because the fusion style does return 0 as offset for
PM_ButtonShiftHorizontal/PM_ButtonShiftVertical so no shifting will
happen.

Gbp-Pq: Name fusion_checkable_qpushbutton.diff

4 years agofix placement of placeholder text in QLineEdits with action icons
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
fix placement of placeholder text in QLineEdits with action icons

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0e6b31019f01c72e
Last-Update: 2021-08-10

After dc794f7622bc00f7ca50fab65d6965695d6d2972, side widgets only got
space if they were not fading out, but the logic was not correctly
accounting for side widgets that never fade, such as buttons added via
QLineEdit::addAction.

Fix this to give visible widgets space, unless they are fading out. That
was the intent of the original change. Rename the variable to make its
purpose clearer, and reset it at the end of the fade-out animation.

Add a much-needed test that relies on private APIs to verify that the
effective margins are calculated correctly.

Gbp-Pq: Name fix-placement-of-placeholder-text-in-QLineEdits-with-action-icons.diff

4 years agofix misplacement of placeholder text in QLineEdit with RTL content
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
fix misplacement of placeholder text in QLineEdit with RTL content

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=dc794f7622bc00f7
Last-Update: 2021-06-16

The placeholder text was rendered in the wrong position after clicking
on the clear button in a QLineEdit with right-to-left content. The
button was still taking up space while it was fading out, so the first
paintEvent rendered the placeholder with space reserved for the clear
button. Once the button gets hidden, no new update was issued, so
garbage was left behind.

Fix this by not giving a fading-out clear button any margin space. The
result of this is that the placeholder text is visible underneath the
fading-out clear button. This is preferable to the placeholder text
being first rendered next to the fading-out clear button, and then
popping to the edge when the clear button is hidden (which would have
been the result of issuing a complete update for the line edit at the
end of the fade-out animation).

Gbp-Pq: Name fix-misplacement-of-placeholder-text-in-QLineEdit.diff

4 years ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

4 years agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

4 years agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

4 years agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

4 years agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

4 years agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

4 years agoqtbase-opensource-src (5.15.2+dfsg-10) unstable; urgency=medium
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
qtbase-opensource-src (5.15.2+dfsg-10) unstable; urgency=medium

  [ Lu Yaning ]
  * Restore fix-misplacement-of-placeholder-text-in-QLineEdit.diff.
  * Backport upstream patch to fix the regression with placement of
    placeholder text in QLineEdits with action icons.

  [ Dmitry Shachnev ]
  * Backport upstream patch to fix icon display on checkable QPushButtons
    with Fusion style (closes: #991255).
  * Backport upstream patch to remove MySQL version checks, which led to
    wrong conclusions with MariaDB Connector ≥ 3.2.
  * Backport upstream patch to fix QTextFormat::FullWidthSelection for
    right-to-left text layouts.

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-10]

4 years agoImport qtbase-opensource-src_5.15.2+dfsg-10.debian.tar.xz
Dmitry Shachnev [Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-10.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-10 qtbase-opensource-src_5.15.2+dfsg-10.debian.tar.xz]

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-9) import into refs/heads/workingbranch
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-9) import into refs/heads/workingbranch

4 years agocall pkgconfig in order to be able to cross build qtbase with MySql.
Helmut Grohne [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
call pkgconfig in order to be able to cross build qtbase with MySql.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971604
Forwarded: not-needed
Reviewed-by: Lisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Qt's build system calls mysql_config... which won't work in a cross build
environment like Debian's, as it will throw an exec format error.

In order to solve this call pkgconfig and use mysqlclient.pc.

Gbp-Pq: Name cross_build_mysql.diff

4 years agoLimit Linux-only code with Q_OS_LINUX
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff

4 years agoAvoid unconditional PATH_MAX usage
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Avoid unconditional PATH_MAX usage

Forwarded: no
Last-Update: 2020-04-19

Use a "safe" size in case PATH_MAX is not defined; in the end, this should not
be used, as a allocating realpath() will be used instead.

Gbp-Pq: Name path_max.diff

4 years agopass default include directories to qdoc
Martin Smith [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
pass default include directories to qdoc

Bug: https://bugs.debian.org/908328
Forwarded: no
Last-Update: 2020-01-28

Gbp-Pq: Name qdoc_default_incdirs.diff

4 years agoguard UTIME_NOW/UTIME_OMIT usages
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
guard UTIME_NOW/UTIME_OMIT usages

Forwarded: no
Last-Update: 2018-02-22

Gbp-Pq: Name nonlinux_utime.diff

4 years agosupport ARMv4 architecture, needed for armel builds
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
support ARMv4 architecture, needed for armel builds

Forwarded: no
Last-Update: 2016-07-01

Gbp-Pq: Name armv4.diff

4 years agocatch linker warnings in some config tests
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
catch linker warnings in some config tests

Forwarded: https://codereview.qt-project.org/163214 (rejected)
Bug: https://bugs.debian.org/827935
Last-Update: 2019-03-02

Without this, qmake wrongly thinks that the tests succeed, for example:

./config.tests/unix/futimens/futimens.cpp:44: warning: futimens is not implemented and will always fail
test config.corelib.tests.futimens succeeded

Gbp-Pq: Name gnukfreebsd_linker_warnings.diff

4 years agobuild ibase sql plugin against firebird
Fathi Boudra [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
build ibase sql plugin against firebird

Forwarded: no
Last-Update: 2017-06-30

Gbp-Pq: Name link_fbclient.diff

4 years agoremove non-used privacy-breach code
Lisandro Damián Nicanor Pérez Meyer [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
remove non-used privacy-breach code

Forwarded: not-needed
Last-Update: 2015-02-18

This code makes Lintian unhappy. But we are really not using it, it only
gets inserted when building the online doc.
Anyways the best way to calm down Lintian is to simply remove it.

Gbp-Pq: Name remove_privacy_breaches.diff

4 years agodisable htmlinfo example which contains non-free files
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
disable htmlinfo example which contains non-free files

Forwarded: not-needed
Last-Update: 2014-12-17

Gbp-Pq: Name no_htmlinfo_example.diff

4 years agoInitial GNU/kFreeBSD support
Pino Toscano [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Initial GNU/kFreeBSD support

Last-Update: 2015-06-03
Forwarded: no

- add a gnukfreebsd-g++ qmake mkspec, mostly copied from the hurd-g++ one
- properly use LD_LIBRARY_PATH on GNU/* systems

Gbp-Pq: Name gnukfreebsd.diff

4 years ago[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)
Zhang Yu [Mon, 22 Feb 2021 01:25:01 +0000 (09:25 +0800)]
[PATCH] Fix invalid pointer return with QGridLayout::itemAt(-1)

QGridLayout::takeAt() and QLayoutItem *itemAt() only check the upper bound.
If the index < 0, these function will return invalid pointer.

Fixes: QTBUG-91261
Pick-to: 5.15 6.0 6.1
Change-Id: Idfb9fb6228b9707f817353b04974da16205a835c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Gbp-Pq: Name fix-invalid-pointer-return-with-QGridLayout.diff

4 years agoadjust QMimeDatabase implementation
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
adjust QMimeDatabase implementation

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0cbbba2aa5b47224
Last-Update: 2021-06-12

When multiple globs match, and the result from magic sniffing is
unrelated to any of those globs, globs have priority and one of them
should be picked up.

Gbp-Pq: Name mime_globs.diff

4 years agofix allocated memory of QByteArray returned by QIODevice::readLine
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
fix allocated memory of QByteArray returned by QIODevice::readLine

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=6485b6d45ad165cf
Last-Update: 2021-02-20

Gbp-Pq: Name qiodevice_readline_memory.diff

4 years agoinclude <limits> to fix some GCC 11 build issues
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
include <limits> to fix some GCC 11 build issues

Origin: upstream, commits:
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
Last-Update: 2021-01-26

Gbp-Pq: Name gcc_11_limits.diff

4 years agoQNAM: work around QObject finicky orphan cleanup details
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
QNAM: work around QObject finicky orphan cleanup details

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=0807f16eb407eaf8
Last-Update: 2021-01-26

Gbp-Pq: Name qnam_connect_memory_leak.diff

4 years agoAvoid use-after-free in QXcbConnection::initializeScreens()
Debian Qt/KDE Maintainers [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Avoid use-after-free in QXcbConnection::initializeScreens()

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=86b8c5c3f32c2457
Last-Update: 2020-11-23

Gbp-Pq: Name xcb_screens_uaf.patch

4 years agoqtbase-opensource-src (5.15.2+dfsg-9) unstable; urgency=medium
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
qtbase-opensource-src (5.15.2+dfsg-9) unstable; urgency=medium

  * Revert adding fix-misplacement-of-placeholder-text-in-QLineEdit.diff.
    Unfortunately it causes a regression (see QTBUG-94824).

[dgit import unpatched qtbase-opensource-src 5.15.2+dfsg-9]

4 years agoImport qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz
Dmitry Shachnev [Fri, 2 Jul 2021 15:58:04 +0000 (16:58 +0100)]
Import qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz

[dgit import tarball qtbase-opensource-src 5.15.2+dfsg-9 qtbase-opensource-src_5.15.2+dfsg-9.debian.tar.xz]

4 years agoMerge qtbase-opensource-src (5.15.2+dfsg-7) import into refs/heads/workingbranch
Lisandro Damián Nicanor Pérez Meyer [Thu, 3 Jun 2021 12:55:29 +0000 (13:55 +0100)]
Merge qtbase-opensource-src (5.15.2+dfsg-7) import into refs/heads/workingbranch