Commit Graph

316 Commits (feat/delete-screen-intersect)

Author SHA1 Message Date
Michele Calgaro 0f480dc43f
Fixed broken Q_FULL_TEMPLATE_INSTANTIATION define (renamed to TQ_FULL_TEMPLATE_INSTANTIATION).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Slávek Banko 7441a646a8
Fix buffer overflow in XBM parser.
Avoid parsing over the buffer limit, or interpreting non-hex as hex.
This still leaves parsing of lines longer than 300 chars unreliable.

Based on Qt5 patch for CVE-2020-17507.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
5 years ago
Michele Calgaro b3c22b84ef
Removed additional code formatting modelines.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
gregory guy 3d5e557e40
Fix FTBFS with compiler's options(gcc): -Werror=format-security -Wformat
Signed-off-by: gregory guy <gregory-tde@laposte.net>
5 years ago
Michele Calgaro 250e6baa4c
Removed code formatting modelines.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
OBATA Akio 8704c62dce Fix `qt_xft_handle` to work as expected
Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
OBATA Akio ac50013578 Fix MIT_SHM related condition
Prevent to build MIT_SHM related codes for !QT_MITSHM condition.

Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
OBATA Akio 48a9cf9a3c Fix to detect Thread Execution Scheduling support correctly
If `_POSIX_THREAD_PRIORITY_SCHEDULING == 0`, it must be checked
with sysconf(_SC_THREAD_PRIORITY_SCHEDULING) at runtime.

Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
OBATA Akio b6a4a5ec20 Remove unwanted code for writing png
`info_ptr->channels` will be set in the next called `png_set_IHDR()`,
so it is no effect.

Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
OBATA Akio 5ce8516970 Change to use PKG_LIBPNG_VER for libpng version check
It is suggested in png.h for applications.

Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
OBATA Akio b79f0a7caa
Improve modern res API available condition
`__RES` is usable to check release date of resolver library.
Such modern res API appeared in BIND-8.2.0 libbind with `__RES == 19980901`,
it was refrected as BIND-8.2.2-P5 to glibc at pre 2.3 release with
`__RES == 19991006`.

Signed-off-by: OBATA Akio <obache@wizdas.com>
5 years ago
Michele Calgaro 4a8f6dd3c5
Fixed minor typo in H file include names.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro 292fa30f0f
Removed obsolete Qt2's TQStack class and replaced with TQt3's TQPtrStack.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
5 years ago
Michele Calgaro f086971876
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>
5 years ago
Slávek Banko 9d5d503f74
Remove dates from generated files.
This is related to the effort for reproducible builds.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Michele Calgaro 99e56ba8db
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko 4470facd61
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>
6 years ago
Slávek Banko da15dfe6d7
Fix FTBFS when building with musl libc.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Slávek Banko 9a6ac9dde5
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
François Andriot 90ea30a42a
Remove bool/my_bool artifact, the 'bool' data type is part of the c++
language and was added to c compilers with c99.

Signed-off-by: gregory guy <gregory-tde@laposte.net>
6 years ago
Michele Calgaro 80dc1e5317
Added tqDebug/tqWarning/tqFatal functions that takes a TQCString
argument. This fixes FTBFS of examples caused by previous ambiguous
call and solves bug 3021.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko aae0287741
Fix FTBFS from prior commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
Denis Kozadaev 4f528c3bd2 add MYSQL_SSL_* to the driver for MySQL connections
Signed-off-by: Denis Kozadaev <denis@dilos.org>
6 years ago
Chris 3f5c7cb553 Replace dead trolltech website with trinity ones.
Signed-off-by: Chris <xchrisx@uber.space>
6 years ago
Michele Calgaro 632cbaa30a
Renamed QT_IM_* to TQT_IM_*. This relates to bug 3020.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Slávek Banko 1aa221a2bc
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>
6 years ago
Slávek Banko a410cb031f
Rename tqt-kde integration to tqt-tde.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
6 years ago
gregory guy d3b13515ef
The TDE integration library (libtqtkde) will be searched for
in the TQt plugins directory, instead of the TDE plugins
directory, which cannot be known at TQt 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>
6 years ago
gregory guy 6131b4262e
This fixes bug: 639
Add desktop files for:
- tqassistant
- tqdesigner
- tqlinguist
- tqtconfig

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>
6 years ago
Michele Calgaro fd634b0c14
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro d795939c03
Added convenient TQStringVariantMap type and iterators.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro cfc76de73c
Removed dummy int parameter from TQVariant(bool, int).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro e9567cacad
Removed unnecessary and unused TQT_REAL_TQT definition.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro d63a113c5c
Added utility functions tqDebug/tqWarning/tqFatal based on TQString parameter.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
6 years ago
Michele Calgaro 835a7b87e7
Added timestamp to debug functions (tqDebug, tqWarning, tqFatal).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Slávek Banko 5a61151fe9
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>
7 years ago
Slávek Banko 83036c3af1
Check for TQImage 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>
7 years ago
Slávek Banko b7be699a09
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>
7 years ago
Slávek Banko 4e83f4f200
Make use of TQString::utf8() and TQString::local8Bit() safe for conversion to char*.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Michele Calgaro 9226c02de9
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>
7 years ago
Michele Calgaro 7c9a149f4c
Fixed FTBFS caused by name conflict with new postgres server dev 11 package.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 7f4d09f200
Removed obsolete CHECK_PTR and replaced CHECK_PTR/Q_CHECK_PTR with TQ_CHECK_PTR.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 23b535df5b
Removed some obsolete code related to Qt1.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro c048ce6e8c
Removed obsolete Qt2's TQVector class and replaced
with TQt3's TQPtrVector.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 789e7c7f92
Removed obsolete Qt2's TQList/TQListIterator classes and replaced
with TQt3's TQPtrList/TQPtrListIterator ones.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 69d87202cb
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 455154cec4
Replaced _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE with _DEFAULT_SOURCE.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 5774d07807
qt -> tqt conversion:
kdeqt -> kdetqt
qtkde -> tqtkde
qtdesigner -> tqtdesigner

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 5fd88f2a20
qt -> tqt conversion:
QT_NO_ASCII_CAST -> TQT_NO_ASCII_CAST
QT_NO_STL -> TQT_NO_STL
QT_NO_COMPAT -> TQT_NO_COMPAT
QT_NO_TRANSLATION -> TQT_NO_TRANSLATION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 3e98ce7f85
qt -> tqt conversion:
QTDIR -> TQTDIR
QTDOC -> TQTDOC
INCDIR_QT -> INCDIR_TQT
LIBDIR_QT -> LIBDIR_TQT
QT_INC -> TQT_INC
QT_LIB -> TQT_LIB

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Michele Calgaro 9f5d59f336
qt -> tqt conversion:
qtlib -> tqtlib
libqt -> libtqt
QTLIB -> TQTLIB
LIBQT -> LIBTQT

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Slávek Banko ff63338d18
Always build with a clean namespace
QT_CLEAN_NAMESPACE constant is no more needed

This may theoretically affect applications created for Qt1 and Qt2,
but such applications require further modifications as well.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Michele Calgaro 02964eb384
Conversion QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT. This is part of the
qt->tqt conversion and is required to align to corresponding patch for
common/admin module.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
7 years ago
Slávek Banko 017e8dbffe
Fix FTBFS with stricter C++11
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko 878533ff2c Fix security issue CVE-2016-10040
[taken from RedHat Qt3 patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Slávek Banko a889f43469 Backport mysql driver mariadb fix - see QTBUG-63108
[taken from RedHat Qt3 patches]

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
7 years ago
Roman Savochenko 4c30819078 Add brightness keys support
The code partially taken from Qt4
This relates to bug 2775

Signed-off-by: Roman Savochenko <rom_as@oscada.org>
8 years ago
Slávek Banko 2af0620bfc ListView: Deselect items that are hidden by the filter
during selectAll and invertSelection

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
8 years ago
Slávek Banko 5b1f451dd6 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>
8 years ago
Slávek Banko 9bbdfea568 Do not force POSIX mutexes on FreeBSD
This relates to bug 2462
See comments on bug 2744

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
9 years ago
Timothy Pearson d49abd0e62 Third part of prior commit
GIT client malfunctions are fun!
9 years ago
Timothy Pearson 6d05fcd18d Second part of prior commit 9 years ago
Timothy Pearson 0b1b8701d9 Use time_t for UNIX timestamps
WARNING: This breaks the ABI!
9 years ago
Timothy Pearson 30d1cb0bef Fix invalid headers in PNG files and optimize for size 9 years ago
Timothy Pearson b99016b854 Automated update from Qt3 10 years ago
Timothy Pearson 3add7b436c Automated update from Qt3 10 years ago
Michele Calgaro 6b220f98eb Added operator[] convenience function to TQPtrList, similarly to TQValueList.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 years ago
Michele Calgaro e418211d50 Fixed (again) search algorithm for iconview widget. This resolves (again) bug 420.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 years ago
Michele Calgaro caab7b3557 Added safety harness for currentThreadObject() usage.
currentThreadObject() returns a null pointer if the
current thread was not started using the TQThread API.
This relates to bug 1748.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 years ago
Michele Calgaro 42dcb07b26 Fixed search algorithm for iconview widget. This resolves bug 420.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
10 years ago
Slávek Banko 094708c0e7 Fix security issue CVE-2015-1860
[taken from RedHat Qt3 patches]
11 years ago
Slávek Banko 64d9c07d57 Fix security issue CVE-2015-0295
[taken from RedHat Qt3 patches]
11 years ago
Slávek Banko ebf9a9871a Fix security issue CVE-2014-0190
[taken from RedHat Qt3 patches]
11 years ago
Slávek Banko cc46bf4ecb Fix security issue CVE-2013-4549
[taken from RedHat Qt3 patches]
11 years ago
Timothy Pearson dfb87398c7 Automated update from Qt3 11 years ago
Timothy Pearson 891a448afa Automated update from Qt3 11 years ago
Michele Calgaro a41a034902 Moved iconview widget to src/widget folders.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 years ago
Timothy Pearson 859958033d Automated update from Qt3 11 years ago
Michele Calgaro 38e12d6e12 Fixed Multicolumn view filtering item arrangement. This relates to bug 146.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
11 years ago
Timothy Pearson fbf8ee2262 Automated update from Qt3 11 years ago
Timothy Pearson 3aba060d81 Automated update from Qt3 11 years ago
Timothy Pearson bdc8377b23 Automated update from Qt3 11 years ago
Timothy Pearson 38755f930a Automated update from Qt3 11 years ago
Timothy Pearson 16e2c768d6 Automated update from Qt3 11 years ago
Timothy Pearson 6e8d2d256b Automated update from Qt3 11 years ago
Timothy Pearson 48f56c4352 Automated update from Qt3 11 years ago
Slávek Banko d9d3dd456a Improve TQProgressBar repaint optimization 11 years ago
Enrico Ros baea23ba1f 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.
11 years ago
François Andriot f059feb9c6 Fix dpi detection when using xft2 11 years ago
François Andriot 3e57876ec3 Fix crash in TQTranslator 11 years ago
François Andriot c86b8f17bf Enhance warning verbosity in TQFile (unix) 11 years ago
Waldo Bastian 9a892fcab0 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.
11 years ago
Benoit Walter 0cce3b0ec1 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
11 years ago
Frerich Raabe 0c5a2640a6 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.
11 years ago
Timothy Pearson b478472598 Automated update from Qt3 11 years ago
François Andriot 9c2ce91a36 Fix FTBFS on Linux specific memlock code 11 years ago
François Andriot 6d4396b3b5 Fix FTBFS because invalid data conversion in qmutex 11 years ago
Timothy Pearson d8352f9db2 Automated update from Qt3 11 years ago
Michele Calgaro 85e2ff9cf6 Fixed warning message if QMetaObjectCleanUp::setMetaObject is invoked twice.
If the passed object is the same, the warning message is not displayed any more.
If the passed object is different, a message is still displayed.
This resolves bug 1947.
11 years ago
Michele Calgaro 686236f374 Revert "Fixed warning message if QMetaObjectCleanUp::setMetaObject is invoked twice."
because of wrong reference to bug 1887.
This reverts commit f0bff64751.
11 years ago