Commit Graph

128 Commits (4ebec3754c1771cc59bf36ddd26a694dbc67fceb)
 

Author SHA1 Message Date
Michele Calgaro 4ebec3754c
Improved code for keyboard and mouse grabbing and releasing to avoid
unnecessary actions. This relates loosely to bug 2955.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bc1b1fed7d)
4 years ago
Michele Calgaro 3be898208d
Removed incorrect execution bit.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 1c53644408)
4 years ago
Slávek Banko 8f4edaf705
The translation file mywidget_en.ts in examples/i18n renamed
to mywidget.ts to serve as a template.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 990d01f066)
4 years ago
Slávek Banko f302676fcc
Fix typo.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8b71fd2791)
4 years ago
Slávek Banko 9a345f8076
Remove dates from generated files.
This is related to the effort for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit fc8564a5f0)
4 years ago
Michele Calgaro 92036ede2d
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 961eb3f6e2)
4 years ago
Slávek Banko 0f0b7ff115
Fix crash in tqimage for certain malformed ppm image files
The ppm format specifies that the maximum color value field must be
less than 65536. The handler did not enforce this, leading to
potentional overflow when the value was used in 16 bits context.

Based on Qt5 patch for CVE-2018-19872.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b08a6d71ba)
6 years ago
Slávek Banko 0aaa77dd7e
Fix FTBFS when building with musl libc.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 40078adb6a)
6 years ago
Slávek Banko 30312fbea6
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 271050fb4c)
6 years ago
Slávek Banko fcb9b0f5fc
Change tests for glibc version.
It resolves building with libc libraries
other than glibc - for example musl libc.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit edad20d4f9)
6 years ago
gregory guy cf5e27248b
The TDE integration library (libqtkde) will be searched for
in the Qt plugins directory, instead of the TDE plugins
directory, which cannot be known at Qt build time.

This resolves issue #3.

Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1ef55acbce)
6 years ago
gregory guy 8e8751b790
This fixes bug: 639
Add desktop files for:
- assistant-qt3
- designer-qt3
- linguist-qt3
- qtconfig-qt3

These files have been made with the contribution of Laurent Dard's
patch (see bugzilla:639) with little change/addition from I.

Add 'sysshare' option to the configure script.

Signed-off-by: gregory guy <g-gregory@gmx.fr>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 7c13f5df2f)
6 years ago
Michele Calgaro 7ba7acedca
Reintroduced debug, warning and fatal functions since this are part of
R14.0.x API.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5151555c0e)
6 years ago
Michele Calgaro 47425cbf9d
Added timestamp to debug functions (qDebug, qWarning, qFatal).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 3ae061484d)
6 years ago
Slávek Banko c677642f0c
bmp image: check for out of range image size.
Make the decoder fail early to avoid spending time and memory on
attempting to decode a corrupt image file.

Based on Qt5 patch for CVE-2018-19873.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a00e43bd1c)
6 years ago
Slávek Banko 55c97eb0b3
Check for QImage allocation failure in qasyncimageio.
Since image files easily can be (or corrupt files claim to be) huge,
it is worth checking for out of memory situations.

Based on Qt5 patch for CVE-2018-19870.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a04cfea092)
6 years ago
Slávek Banko d85c2df3c7
Add the definition _WANT_SEMUN to ensure the definition of the semun structure.
This resolves bug 2991.

Thanks to Nikolaus Klepp for initial patch.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ee61bf8d1a)
6 years ago
Slávek Banko 80d5792c61
Make use of QString::utf8() and QString::local8Bit() safe for conversion to char*.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(based on commit 0a1966b25e)
6 years ago
Slávek Banko 6c6fcc79bf
Rename qt_untranslated.ts to template.ts
to make it clear for what purpose this file is intended.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 72dfa4c3d1)
7 years ago
Michele Calgaro 7076e8dfda
Improved class name used in previous commit. Suggestion comes from Slavek :-)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 19ef3e4359)
7 years ago
Michele Calgaro e306e7dc01
Fixed FTBFS caused by name conflict with new postgres server dev 11
package.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 4a5da4685a)
7 years ago
Slávek Banko 3e9f0dda9b
Repair damaged UTF-8 characters in TS files
Arabic translations taken from arabeyes-i18n

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 36398097bf)
7 years ago
Michele Calgaro 4ea4c05fdf
Removed unnecessary executable flag. This relates to bug 2153.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2848b517a6)
7 years ago
Slávek Banko a1fe96cf6e
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 5431226296)
7 years ago
Slávek Banko 38fcc7cf0f Fix security issue CVE-2016-10040
[taken from RedHat Qt3 patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 54809cd81b)
7 years ago
Slávek Banko 05e582e0fe Backport mysql driver mariadb fix - see QTBUG-63108
[taken from RedHat Qt3 patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f3c643afc1)
7 years ago
Slávek Banko c38388a835 Add mkspecs for build with Clang
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b5078576ff)
7 years ago
Slávek Banko 58a2e9080d Update buildkey for GCC 7 and 8
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 58b25d4341)
7 years ago
Roman Savochenko 18b5188358 Add brightness keys support
The code partially taken from Qt4
This relates to bug 2775

Signed-off-by: Roman Savochenko <rom_as@oscada.org>
(cherry picked from commit 02405c8411)
8 years ago
Slávek Banko 084e88eea8 Update buildkey for GCC 7
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3a5672aab4)
8 years ago
Slávek Banko 6897563b54 ListView: Deselect items that are hidden by the filter
during selectAll and invertSelection

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit d96172f76d)
8 years ago
Slávek Banko e6fdc7463e IconView: Deselect items that are hidden by the filter
during selectAll and invertSelection
This resolves bug 2750

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 057d9fe7a4)
8 years ago
Slávek Banko f979942b32 Update buildkey for GCC 6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit b099185b90)
8 years ago
Michele Calgaro da181f82c3 Fixed (again) search algorithm for iconview widget. This resolves (again) bug 420.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d27f4e2fc3)
10 years ago
Michele Calgaro 3f8c59015d Fixed search algorithm for iconview widget. This resolves bug 420.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d6867cf92e)
10 years ago
Slávek Banko 7ba79f3631 Update buildkey for GCC 5
[taken from RedHat Qt3 patches]
(cherry picked from commit 0d96f74958)
10 years ago
Michele Calgaro e2922dd208 Fixed Multicolumn view filtering item arrangement. This relates to bug 146.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 9655b0b845)
10 years ago
Timothy Pearson f7fcc6acb7 Try to avoid crashes if the destructor of a TQMap is called when no private object was previously created
(cherry picked from commit 9974902237)
10 years ago
Timothy Pearson 92cad529ea Repaint QComboBox on drop-down dismissal
This relates to Bug 1489
(cherry picked from commit 444ac1fed9)
10 years ago
Francois Andriot b4bff05ee3 Add support for the environment variables TQT_HOME_DIR and TQT_SYSTEM_DIR
(cherry picked from commit f0cc3689b3)
10 years ago
Timothy Pearson 83b1aa2e88 Fix undefined behaviour in TQClipboardWatcher::format
This relates to Bug 1820
(cherry picked from commit dc8f537180)
10 years ago
Slávek Banko fa671f0185 Improve TQProgressBar repaint optimization
(cherry picked from commit 5b34ad0d8e)
10 years ago
Enrico Ros 217873db13 Fix unwanted toggling TQIconViewItem focus on click
This fixes the 'flashing' icon when clicking repeatedly on a TQIconView or
derivates (ie TDEIconView, KonqIconViewWidget, the KDesktop and so on..).
The current behavior considers that if not over an icon, the user is
clicking down to perform icons selection (with the rubberband).
This is not always true, since a click might be used to give focus to a
window or unselect some icons.

How this is fixed: when clicking down the mouse a flag is set. If the pointer
is moved on the iconview with the button held down, then (and only at that
moment) the rubber is created. Now a selection operation (the one done with
the rubber) begins when moving the mouse and not only when clicking on the
empty space.
(cherry picked from commit fbc4cf8e7f)
10 years ago
François Andriot fd6922e60b Fix dpi detection when using xft2
(cherry picked from commit e4b05c8f30)
10 years ago
François Andriot ccee6e3103 Fix crash in TQTranslator
(cherry picked from commit a944830520)
10 years ago
François Andriot a085aad2b5 Enhance warning verbosity in TQFile (unix)
(cherry picked from commit fdc4699bcb)
10 years ago
Waldo Bastian 664cc9b90c Fix zoom in TQTextEdit
TQTextEdit::zoomIn / TQTextEdit::zoomOut does not work if the original
font had its size specified in pixels instead of points.
pointSize() returns 0 in such case.
(cherry picked from commit 14f96e80a5)
10 years ago
Benoit Walter 15508fac70 Remove unnecessary scrollbar in TQIconView
Test case (using konqueror icon view):
- The first icons are being shown (no scrollbar yet)
- When there is no space left, a vertical scrollbar is needed
- The vertical scrollbar may cover the right edge of the icons
(in the last column) => an horizontal scrollbar is needed :-(

Solution:
When using ScrollBarMode::Auto, prevent TQt from drawing icons on the
scrollbar area (before the scrollbar is shown).

Related to KDE bug #69589
(cherry picked from commit 36ee984c64)
10 years ago
Frerich Raabe a356a05c01 Add repaint optimization to TQProgressBar
This optimization makes TQProgressBar::setProgress() only repaint itself
if stepping to the new progress would cause a graphical change. This means
that for a width W and a total number of steps S, it will repaint itself
'W' times (every 'S/W' steps) instead of 'S' times (every step) as it is
right now.
(cherry picked from commit 9f882f9de7)
10 years ago
Francois Andriot b5cb163e01 Fix qmake shared library naming
Add long long int support to TQTextStream
Fix potential segmentation fault in QValueList
Fix library naming in TQT Plugins
This relates to Bug 2107
(cherry picked from commit b716176cec)
10 years ago