summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Call TQApplication::coreThread() in a static mannerAlexander Golubev2025-07-271-2/+2
| | | | | | This is a follow-up to d346b0f7a Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Rename 'guiThread' and related functions to 'coreThread'.Michele Calgaro2025-07-279-64/+72
| | | | | | | A TTY TQApplication is GUI-less, so the usage of the term 'GUI' is misleading. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix handling of socket notifier events in gmainloop functions.Michele Calgaro2025-06-162-10/+19
| | | | | | This resolves issue #231. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improve X11 'ProcessEvents()' with some code from the equivalent glib versionMichele Calgaro2025-06-131-10/+17
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Explicitly add 'ExcludeTimers' to 'ProcessEvent' enumMichele Calgaro2025-06-115-18/+16
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Do not check for expired TQt timers in 'gsourcePrepare' and 'gsourceCheck'Michele Calgaro2025-06-111-10/+14
| | | | | | | since timers are only activated by the main GUI thread in 'gsourceDispatch'. This solves issue TDE/tdebase#635. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix usage of condition variable in TQThread which could lead to a thread ↵Michele Calgaro2025-03-221-3/+5
| | | | | | | | | | | being run multiple times in parallel. Although highly unlikely, the following situation was possible: - a thread is restarted while still running. The call to the second 'start()' blocks because the thread is still running - the OS decides to randomly wake up the thread that called 'start()' - a second thread is started and runs in parallel to the first thread, with obvious undefined behavior Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix a typo and thus FTBFS from the recent commit.Slávek Banko2025-03-201-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Remove 'grp' from TQChar since now surrogate pairs are correctly supportedMichele Calgaro2025-03-132-37/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Move TQChar code to standalone files tqchar.{h,cpp}Michele Calgaro2025-03-136-1110/+1202
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix editing of text containing surrogate characters.Michele Calgaro2025-02-134-16/+59
| | | | | | This relates to issue #162. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Extend work on supporting surrogate characters done in commit e0a38072Michele Calgaro2025-02-096-105/+117
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop support for discontinued DGUXMichele Calgaro2025-02-045-56/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add support for surrogate pairs to TQChar API.Michele Calgaro2025-01-307-58/+82
| | | | | | | This relates to issue #162. The new code is partially taken from Qt4 but with some local rework. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix FTBFS with gcc 15. This resolves issue #214Michele Calgaro2025-01-292-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add support for Unicode surrogate characters and planes above zero.Michele Calgaro2025-01-127-111/+72
| | | | | | | | | If the selected font supports the required characters, the text will be displayed correctly. If the selected font does not support such characters, empty boxes will be displayed in place of the expected text. Part of the code changes comes from Qt4 code. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop code for obsolete FreeType 1Michele Calgaro2025-01-1011-686/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove support for Tru64, OSF and SCO v3.2Michele Calgaro2025-01-0717-448/+19
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename Q_EXPORT to TQ_EXPORTMichele Calgaro2025-01-0221-118/+118
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove support for Metrowerks compilerMichele Calgaro2025-01-0114-847/+15
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove unnecessary filesMichele Calgaro2024-12-292-135/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove support for discontinued Reliant/Sinix unixMichele Calgaro2024-11-073-44/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Update tqt-mt.pc to export the same parameters previously exported in tqt.pc ↵Michele Calgaro2024-10-313-348/+315
| | | | | | | | and tqtqui.pc. Required to drop tqtinterface. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Drop Borland compiler specific codeMichele Calgaro2024-10-2895-2384/+34
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Move time related functions from tqtinterface/tqapplication.{h,cpp}Michele Calgaro2024-10-222-0/+27
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename ntqapplication, ntqconfig and ntqmodules files to equivalent tq*Michele Calgaro2024-10-22153-214/+212
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename uic to tquicMichele Calgaro2024-10-114-9/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove use of glib thread code. Use pthread insteadMichele Calgaro2024-10-081-31/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename moc to tqmocMichele Calgaro2024-10-0615-346/+343
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove documentation for Motif extension classes. Those classes are not ↵Michele Calgaro2024-10-031-3/+1
| | | | | | included in tqt3 source code Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Make sure to release thread resources back to the OS once the thread completes.Michele Calgaro2024-10-021-0/+1
| | | | | | | | Threads created with pthread are created in detach mode. Threads created using glib thread functions are instead created as joinable. The fix makes glib-created threads detached, so that the thread resources are released when the thread completes. This resolves TDE/amarok#30 and will benefit any place where a TQThread is used. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix fallover case for TQEvent::MetaCallMichele Calgaro2024-10-011-2/+8
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix possible SEGV if the sender object list was null and thread support enabledMichele Calgaro2024-09-241-13/+19
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename private q* headers into equivalent tq*Michele Calgaro2024-09-13123-181/+181
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[s-z]* related files to equivalent tq*Michele Calgaro2024-09-12115-169/+169
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[m-r]* related files to equivalent tq* (except ntqmodules.h)Michele Calgaro2024-09-0476-116/+116
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[i-l]* related files to equivalent tq*Michele Calgaro2024-08-3150-78/+78
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[d-h]* related files to equivalent tq*Michele Calgaro2024-08-3170-119/+119
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename remaining ntq[a-c]* related files to equivalent tq* (except ↵Michele Calgaro2024-08-2998-163/+163
| | | | | | ntqapplication.h and ntqconfig.h) Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove obsolete ntqabstractlayout.h headerMichele Calgaro2024-08-296-62/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename global classes nt* related files to equivalent tq*Michele Calgaro2024-08-29119-205/+158
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename style nt* related files to equivalent tq*Michele Calgaro2024-08-2926-67/+67
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Improve handling of the global post event list in order to minimize possible ↵Michele Calgaro2024-08-233-77/+92
| | | | | | | | | | | | | | crashes on exit. Key points: 1. a TQPostEventList can now have an associated mutex, which is used in case of the global post event list (GPEL) 2. the lifetime of the GPEL is no longer associated to the lifetime of the TQApplication object, but rather extended to the lifetime of the main thread. The GPEL is a static local initialized on first access and destroyed when the global static object destructor is invoked 3. access to the GPEL after the TQApplication object has been destroyed has been minimized by protecting calls in ~TQObject() and ~TQWidget(). 4. special care was taken not to affect performances or unnecessarily create tons of unused TQMutexes This replaces PR #182. Technically it is still possibly unsafe due to the order of destruction of the globat static objects not being guaranteed across multiple compilation units, but the aforementioned changes should minimize (possible to zero) the chances of a SEGV happening. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename layout nt* related files to equivalent tq*Michele Calgaro2024-08-1658-107/+107
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Added check for tqApp pointer in TQWidget destructorormorph2024-08-161-2/+2
| | | | | | Necessary for the application to shut down properly Signed-off-by: ormorph <roma251078@mail.ru>
* Rename more widget nt* related files to equivalent tq*Michele Calgaro2024-08-1286-197/+197
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename basic widget nt* related files to equivalent tq*Michele Calgaro2024-07-2983-196/+196
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename environment class nt* related files to equivalent tq*Michele Calgaro2024-07-2833-105/+128
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename text class nt* related files to equivalent tq*Michele Calgaro2024-07-2448-106/+83
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename graphics class nt* related files to equivalent tq* (part 2)Michele Calgaro2024-07-21121-224/+224
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>