summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add support for HistoryBackButton and HistoryForwardButtonMavridis Philippe2023-12-163-12/+21
| | | | | | This resolves TDE/tdebase#421. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵Michele Calgaro2023-09-231-9/+9
| | | | | | QIODevice with TQ* version Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Q_EXPORT_*/Q_EXTERN defines with TQ_EXPORT_*/TQ_EXTERNMichele Calgaro2023-09-13300-920/+920
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace various Q_* and QT_* defines with TQ_* and TQT_*Michele Calgaro2023-09-0736-317/+317
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQSignalMichele Calgaro2023-08-072-44/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQPaletteMichele Calgaro2023-07-182-32/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQButtonMichele Calgaro2023-07-162-35/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQThreadMichele Calgaro2023-07-112-19/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQLineEditMichele Calgaro2023-07-112-52/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove Qt4 related stuffMichele Calgaro2023-07-0928-202/+11
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compatibility code for TQToolButtonMichele Calgaro2023-07-092-115/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop compat headersMichele Calgaro2023-07-0845-1127/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop attic Qt2 classes (TQtMultiLineEdit and TQtTableView)Michele Calgaro2023-07-076-7128/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop Qt2's TQSemiModal and TQSortedList classesMichele Calgaro2023-07-0713-156/+5
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* SunOS res_ninit() requires a clean structureDenis Kozadaev2023-06-151-0/+2
| | | | | | | | Signed-off-by: Denis Kozadaev <denis@dilos.org> init structure without condition Signed-off-by: Denis Kozadaev <denis@dilos.org>
* Revert "Add single TQObject root parent for all guarded pointers."Michele Calgaro2023-06-121-2/+1
| | | | | | | Commit b167d09c was functionally incorrect and is causing issues on selected distributions. This reverts commit b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7. This resolves issue TDE/tde#128.
* Drop Qt2 obsolete classesMichele Calgaro2023-06-037-95/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Enable use of pthread's recursive mutexesBobby Bingham2023-06-021-190/+6
| | | | Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
* Fix level when using pthreads recursive mutexBobby Bingham2023-05-231-16/+12
| | | | | | | | | | | | | | | | | When using the pthreads recursive mutex, the level method was only able to return either zero or one, but a recursive mutex can be locked more than once. Additionally, the way this detected if the mutex was already locked was to test whether it can be locked again. If testing from the thread that is currently holding the lock, this locking attempt always succeeds, and therefore determines that the lock is _not_ held at all. This is especially bad, as this operation only makes sense to perform from the thread that holds the lock -- if any thread not holding the lock queries the number of times the lock is held, that answer can change before the thread can used it. Signed-off-by: Bobby Bingham <koorogi@koorogi.info>
* Add single TQObject root parent for all guarded pointers.r14.1.0Michele Calgaro2023-02-131-1/+2
| | | | | | | This helps keeping the object root list shorter, speeding up operations which require lot of TQObject trees. This relates to TDE/tdebase#309. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename ENABLE_QSTYLECONTROLELEMENTDATA_SLOW_COPY in ↵Michele Calgaro2022-04-301-3/+3
| | | | | | ENABLE_TQSTYLECONTROLELEMENTDATA_SLOW_COPY Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* SGI style: enable complex widget renderingMavridis Philippe2022-04-241-1/+1
| | | | | | | | Was commented out for no obvious reason This resolves issue #64. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Use empty d->cString for TQString::shared_null instead of null string.Slávek Banko2022-03-221-2/+2
| | | | | | | This restores consistency for the behavior of methods TQString::utf8() and TQString::local8Bit() with null TQStrings. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Avoid changes of d->cString for TQString::shared_null to make the value ↵Slávek Banko2022-03-221-4/+13
| | | | | | | | reliable. This precedes unnecessary allocations, potential use after free and crashes. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed QT_NON_COMMERCIAL check and related code.Michele Calgaro2022-02-071-8/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* tools: fix to use `pthread_t` for Thread IDOBATA Akio2021-12-281-10/+10
| | | | | | | | | | | Thread ID is opaque type pthread_t, it may not be compatible with integer, and may integer with valid id `0`. Change to store mutex owner thread ID as `pthread_t` type with valid flag and compare with `pthread_equal()`, and don't try to print it. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Remove deprecated glib2 function calls g_thread_get_initialized(), ↵gregory guy2021-06-181-7/+8
| | | | | | g_thread_init() and g_thread_create(). Signed-off-by: gregory guy <gregory-tde@laposte.net>
* Add unicode points so that upper() and lower() functions work for:Ray-V2021-04-141-964/+981
| | | | | | | | | - latin letter sharp s - latin letter glottal stop - greek lunate sigma symbol - greek letter san Signed-off-by: Ray-V <ray-v@inbox.lv>
* Return TQT_NO_WORKSPACE setting, according to TQT_MODULE_WORKSPACE,Slávek Banko2021-03-301-0/+3
| | | | | | unwantedly removed in commit a41a034902bb3aa75db4524978a174353b5de2fe. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fixed broken Q_FULL_TEMPLATE_INSTANTIATION define (renamed to ↵Michele Calgaro2021-02-132-7/+7
| | | | | | TQ_FULL_TEMPLATE_INSTANTIATION). Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix buffer overflow in XBM parser.Slávek Banko2020-10-161-7/+32
| | | | | | | | | 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>
* Removed additional code formatting modelines.Michele Calgaro2020-09-252-14/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix FTBFS with compiler's options(gcc): -Werror=format-security -Wformatgregory guy2020-09-221-3/+3
| | | | Signed-off-by: gregory guy <gregory-tde@laposte.net>
* Removed code formatting modelines.Michele Calgaro2020-09-191-5/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix `qt_xft_handle` to work as expectedOBATA Akio2020-08-081-1/+1
| | | | Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix MIT_SHM related conditionOBATA Akio2020-08-061-1/+5
| | | | | | Prevent to build MIT_SHM related codes for !QT_MITSHM condition. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Fix to detect Thread Execution Scheduling support correctlyOBATA Akio2020-08-041-1/+4
| | | | | | | 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>
* Remove unwanted code for writing pngOBATA Akio2020-07-181-13/+0
| | | | | | | `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>
* Change to use PKG_LIBPNG_VER for libpng version checkOBATA Akio2020-07-181-23/+23
| | | | | | It is suggested in png.h for applications. Signed-off-by: OBATA Akio <obache@wizdas.com>
* Improve modern res API available conditionOBATA Akio2020-07-091-1/+1
| | | | | | | | | `__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>
* Fixed minor typo in H file include names.Michele Calgaro2020-05-231-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Removed obsolete Qt2's TQStack class and replaced with TQt3's TQPtrStack.Michele Calgaro2020-05-232-31/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improved code for keyboard and mouse grabbing and releasing to avoidMichele Calgaro2020-04-291-23/+28
| | | | | | unnecessary actions. This relates loosely to bug 2955. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove dates from generated files.Slávek Banko2020-03-202-8/+4
| | | | | | This is related to the effort for reproducible builds. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-3044-404/+404
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix crash in tqimage for certain malformed ppm image filesSlávek Banko2019-12-161-1/+1
| | | | | | | | | | 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>
* Fix FTBFS when building with musl libc.Slávek Banko2019-12-111-0/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix build with PostgreSQL 12+.Slávek Banko2019-11-181-0/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Remove bool/my_bool artifact, the 'bool' data type is part of the c++François Andriot2019-11-181-1/+1
| | | | | | language and was added to c compilers with c99. Signed-off-by: gregory guy <gregory-tde@laposte.net>
* Added tqDebug/tqWarning/tqFatal functions that takes a TQCStringMichele Calgaro2019-09-052-1/+20
| | | | | | | argument. This fixes FTBFS of examples caused by previous ambiguous call and solves bug 3021. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>