summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge translation files from master branch.r14.1.4Slávek Banko2025-04-177-1/+2025
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Fix usage of condition variable in TQThread which could lead to a thread ↵Michele Calgaro2025-03-231-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> (cherry picked from commit 3143d2d40ab5af1053596cd9b46c7034f22c4624)
* Fix editing of text containing surrogate characters.Michele Calgaro2025-02-135-17/+60
| | | | | | | This relates to issue #162. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 9c648bea9bfb1113c070a05b36f78ff006d0877a)
* Extend work on supporting surrogate characters done in commit e0a38072Michele Calgaro2025-02-096-105/+117
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 486aa07930e7b6e900f77e64726c8cc4110511d8)
* Drop support for discontinued DGUXMichele Calgaro2025-02-0511-233/+5
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 46f42bcd5a6e2ad99fe842432279e529adce890a)
* 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> (cherry picked from commit c5cda03125a6d34c179d968011083bceb87976bd)
* Fix FTBFS with gcc 15. This resolves issue #214Michele Calgaro2025-01-302-2/+2
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d517cda6bdb0160be39a96712d4cf6036b920be3)
* 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> (cherry picked from commit e0a38072cf48a6819a5cd788588267f3441d9d6a)
* Drop code for obsolete FreeType 1Michele Calgaro2025-01-1212-710/+2
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ccd304b2a6415d8b747d04b3a47736d1e6f45717)
* Remove support for Tru64, OSF and SCO v3.2Michele Calgaro2025-01-0834-1213/+37
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 2b0ea37581b2fa4eba2b353d45dc134fbafe0b0f)
* Remove support for discontinued Reliant/Sinix unixMichele Calgaro2025-01-0811-424/+3
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 792e93f6e9784c7bfe101a1f863c68f1568a117d)
* Remove support for Metrowerks compilerMichele Calgaro2025-01-0825-2704/+18
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 37293565c31fa447fbf7cb0566be51d1204e8991)
* Drop Borland compiler specific codeMichele Calgaro2025-01-08120-3469/+45
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 69e1261df646edf24612d7f953dac81182e7461b)
* Rename Q_EXPORT to TQ_EXPORTMichele Calgaro2025-01-0342-166/+166
| | | | | | Manually cherry picked from commit 01d46198 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove unnecessary filesMichele Calgaro2024-12-302-135/+0
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7eccd2d0161a0e17e0609b26a006df35dfd0f462)
* Merge translation files from master branch.r14.1.3Slávek Banko2024-10-144-2/+2
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Make sure to release thread resources back to the OS once the thread completes.Michele Calgaro2024-10-031-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. Manually cherry-picked from commit 81288cfc. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix fallover case for TQEvent::MetaCallMichele Calgaro2024-10-011-2/+8
| | | | | | Manually cherry-picked from commit 24b42848. 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
| | | | | | Commit manually cherry-picked from 8e653076. 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-293-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> (cherry picked from commit ddce1c91f8582885497b463b24bac59f6fdfdf63)
* 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> (cherry picked from commit c55ef27a2c511c29a8a82d00bd2ede1fb02cfa41)
* Fix OpenType language definition tags and array access. This resolves issue #171Michele Calgaro2024-07-211-9/+32
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 14c414378d96f7463b989384f4a0e5dd76632b6d)
* Fix a missing `if` clause guardOBATA Akio2024-05-231-1/+2
| | | | | | | It was mismatched with indents and sibling `if` clause cases. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 729c01ffb2d99f0f088d31860b71a202850a9688)
* Fix to compare thread_id with `pthread_equal()`OBATA Akio2024-05-231-1/+1
| | | | | | | `pthread_t` is an opaque type, should not be compared with `==`. Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit 9ae164eb837f7a9135fecca24b8c8e6528aef1b7)
* Remove commercial site content and documentationNik Reist2024-05-166-380/+4
| | | | | | | trolltech domain is no longer valid. Signed-off-by: Nik Reist <nik.reist@murena.io> (cherry picked from commit 168dd9b0c580f8b11364fd6f9c76d7bec419681c)
* Correctly release glib mainloop and gsource, to avoid memory leaksMichele Calgaro2024-05-013-4/+19
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 08a71c8f8d2d73bc1ba7d6b2a58b9ce30184c471)
* Merge translation files from master branch.r14.1.2Slávek Banko2024-04-1813-484/+2564
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* Prevent creation of text codecs when the application is shutting down. This ↵Michele Calgaro2024-04-041-34/+74
| | | | | | | resolves issue #142 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7563c4825f14a21f4d34c5187108b8ae71886dd1)
* TQTextEdit: remove one of two readOnly flagsAlexander Golubev2024-04-032-9/+9
| | | | | | | | There were two flags for read-only with different capitalization: readonly and readOnly. This was probably a mistake. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 9c5ea5617a3bc0e69213e2361dd02d70f14f4708)
* TQTextEdit: add missing mightStartDrag initializationAlexander Golubev2024-04-031-0/+1
| | | | | | | | mightStartDrag might have been used uninitialized when moving mouse with pressed mouse button into window. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 2b1c78cb539b208290adb189adccd125cef19105)
* Improve TQFont-related cleanupAlexander Golubev2024-04-031-1/+1
| | | | | | | | | | Improve TQFont cleanup making sure that all instances of TQFont are destroyed before TQApplication (or specifically before disconnect from X11). This gets reed of several valgrind complains about leaks deep inside fontconfig. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 1b951e5229a369d50cb05dfcb184d9b600169ed3)
* Improve TQFont-related cleanupAlexander Golubev2024-04-037-1/+41
| | | | | | | | | | Improve TQFont cleanup making sure that all instances of TQFont are destroyed before TQApplication (or specifically before disconnect from X11). This gets reed of several valgrind complains about leaks deep inside fontconfig. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit ffbaaf0e1c181dd0f0d8ad7b273530f7cda086da)
* TQFileDialog: cleanup pixmaps before destroying TQApplicationAlexander Golubev2024-03-221-0/+8
| | | | | | | Otherwise it results in small memmory leakage on exit of Xlib data. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit fb0d62eec811ab2d4d73550e455944cecbe7e091)
* examples/canvas: fix some memory leaksAlexander Golubev2024-03-222-9/+22
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit ee63474739f0170485d50711944a430dad98cc91)
* TQPrintDialog: cleanup data requested from libcupsAlexander Golubev2024-03-211-0/+5
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit c2c385eef261e8bba46d360ceccdb604733f07c0)
* inputmethods/xim: fix incorrect fontset ref countingAlexander Golubev2024-03-211-3/+4
| | | | | | | | | - rename fontsetRefCount -> fontsetCacheRefCount - move fontsetCacheRefCount to constructor as setHolderWidget() could be called more than once Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit e1bb179fdec82544a3de80a0d51c2700fa27c0f5)
* TQPrinterPrivate: add virtual destructor.Alexander Golubev2024-03-201-0/+3
| | | | | | | | | | As derivative from it e.g. TQPrinterUnixPrivate are getting deleted (e.g in unix TQPrinter implementation) by a reference to base class. Also added missing include to the header. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 5920542e9e62672acb42cbb70e6eac27442ebed0)
* Zero unused data fields in XClientMessageEvent structAlexander Golubev2024-03-191-1/+1
| | | | | | | | valgrind was complaining about access to uninitialized data because unused elements in client_message.data.l array weren't set o any value. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 8a13d9aef40a1094723afa46dccc2ee8b52bd739)
* Fix TQThreadStorage destruction in the main threadAlexander Golubev2024-03-185-2/+47
| | | | | | | | | | | | | | | | Before that the allocations of TQThreadStorage objects from the main thread were never destroyed and memory associated with them were never freed. The second one isn't a huge problem as at that point program is terminating anyway (but it still makes valgrind complain). The first one is the bigger issue as destructors might contain some essential external cleanups like removing temporary files. Also make `TQApplication::guiThread()` return `0` when the thread is destroyed (may happen on the program exiting during destruction of statics). Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit b1e6f384640525c5a0caceef017848f8ebee46b8)
* Fix TQString::sprintf() not calling va_end() in case of bad cformatAlexander Golubev2024-03-171-4/+3
| | | | | | | | Also rearrange code a bit so it would be obvious that the function doesn't return a dangling reference. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit bcda4011918a88064d35908b089a3300e187245a)
* Fix a small memory leak in xim pluginAlexander Golubev2024-03-161-4/+6
| | | | | | | | | | | TQXIMInputContext::setHolderWidget() function may be (and actually is) called more than once. This results in multiple instances of the same object being added to ximContextList. But the destructor removes only one instance, which effectively results in leak of several bytes whenever a window is opened. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 1278ed0dad0a51d280d7b8b934a9280b459b107c)
* gitignore: add a couple more testsAlexander Golubev2024-03-161-0/+3
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 8e4edc5883e826848ca4903e5b73a7e2c0342024)
* Add explicit declaration TQChar&TQCharRef default constructor/destructorAlexander Golubev2024-03-161-0/+12
| | | | | | | This suppresses -Wdeprecated-copy warning. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 87129eac9a6efa5a3f0b23dd5e2f94c716c2bfa7)
* Resort includes in ntqt.hAlexander Golubev2024-03-131-5/+5
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit b930cec6013b9609c4345268171763c2c5936ae4)
* ./configure: turn thread support on by defaultAlexander Golubev2024-03-111-1/+0
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit d8738f551be832cd69b8b382a550819d9b747ad7)
* Avoid setting CONFIG=thread in qmake.confAlexander Golubev2024-03-115-5/+5
| | | | | | | Otherwise it's impossible to override in ./configure Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit cbdf33337892590c7f81ce37d8f67894912753af)
* Fix compilation with -no-threadAlexander Golubev2024-03-114-27/+61
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 4100c9e29f3ccb324a68ff1759ebbf1d35849a40)
* Fix up mkspecs/linux-g++-32/qplatformdefs.hAlexander Golubev2024-03-101-0/+7
| | | | | | | The head of file was accidentally deleted in 455154ce Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit bd8bd100a41d205592a3c4d41c52617bfdeb602d)
* Fix compilation with -disable-inputmethod and -no-inputmethodAlexander Golubev2024-03-084-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | As for now here are two sets of inputmethod options: - -enable-inputmethod/disable-inputmethod - which seems to supposed to control whether build the 'inputmethod' module or not - -inputmethod/-no-inputmethod - which seems to supposed to enable/disable inputmethod support without changing the ABI. Before the patch both -disable-inputmethod and -no-inputmethod were just breaking the build: -no-inputmethod were disabling some code with support for the module, but didn't disabled the module build itself nor build of plugins. -disable-inputmethod were disabling build of plugins and module, but didn't disabled code depending upon it. It seems the inputmethod support were still WIP when the last release of Qt3 came to be, hence the mess. This patch fixes the build if both -disable-inputmethod AND -no-inputmethod are supplied. Disabling only one is not enough due to tqmake/configure have problems handling two different options of the same name. Later the -inputmethod/-no-inputmethod should be probably removed entirely. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit fad4acbe084403340bb0ee6979ea18db464e7085)
* Fix FTBFS with -no-xkbAlexander Golubev2024-03-041-4/+17
| | | | | | | | The analogue of XkbKeycodeToKeysym() used to be XKeycodeToKeysym(), but it was deprecated in favour of XGetKeyboardMapping() method. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit beb37238fa751dada93695a8b9ce1bb73aea1253)