summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 <[email protected]> (cherry picked from commit fb0d62eec811ab2d4d73550e455944cecbe7e091)
* examples/canvas: fix some memory leaksAlexander Golubev2024-03-222-9/+22
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit ee63474739f0170485d50711944a430dad98cc91)
* TQPrintDialog: cleanup data requested from libcupsAlexander Golubev2024-03-211-0/+5
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (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 <[email protected]> (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 <[email protected]> (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 <[email protected]> (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 <[email protected]> (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 <[email protected]> (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 <[email protected]> (cherry picked from commit 1278ed0dad0a51d280d7b8b934a9280b459b107c)
* gitignore: add a couple more testsAlexander Golubev2024-03-161-0/+3
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (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 <[email protected]> (cherry picked from commit 87129eac9a6efa5a3f0b23dd5e2f94c716c2bfa7)
* Resort includes in ntqt.hAlexander Golubev2024-03-131-5/+5
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit b930cec6013b9609c4345268171763c2c5936ae4)
* ./configure: turn thread support on by defaultAlexander Golubev2024-03-111-1/+0
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (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 <[email protected]> (cherry picked from commit cbdf33337892590c7f81ce37d8f67894912753af)
* Fix compilation with -no-threadAlexander Golubev2024-03-114-27/+61
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (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 <[email protected]> (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 <[email protected]> (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 <[email protected]> (cherry picked from commit beb37238fa751dada93695a8b9ce1bb73aea1253)
* Fix FTBFS with -no-stlAlexander Golubev2024-03-041-0/+2
| | | | | | | On modern compilers placement new requires inclusion of <new> Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 2f15a471f912b8ef5bc11d215f8937a37da42b87)
* avoid translating the /qt/XIMInputStyle options when saving into configAlexander Golubev2024-03-022-6/+7
| | | | | | | | Also use "On The Spot" as the default when the setting in the config is incorrect. Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 34587584ab80fd696cc9d73dda1326f175125ddf)
* gitignore: add missing examples (sound, tablet)Alexander Golubev2024-02-291-0/+4
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 7578fa552bfa738c7cfb84584ef2423f49c7c422)
* Fix FTBFS with -qt-sql-sqlite3Alexander Golubev2024-02-291-0/+5
| | | | | | | Fix FTBFS when sqlite3 sql driver is being built into the library Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 3cba79c7f5a4c3fcef587cecb7d9c4ede1e47be4)
* fix grep complain in configure: "warning: stray \ before c"Alexander Golubev2024-02-211-3/+3
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit 92fe7747045ffd36c22d8129a406dd001e043263)
* Remove original Q_WS_* definesMichele Calgaro2024-02-202-22/+0
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 77697cb46ca8744e89cadadae81ee8c0df3e2dbd)
* Add .gitignore fileAlexander Golubev2024-02-201-0/+303
| | | | | Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit facf04e60c44ef6639bf74043614495845c3064d)
* Replace QT_STATIC_CONST_* with actual definitionsMichele Calgaro2024-02-1612-155/+129
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 1d318a47b0b45a7f916f526de60d628302cbfd4c)
* Replace Q_WS_* defines with TQ_WS_* equivalentsMichele Calgaro2024-02-14209-1191/+1213
| | | | | | | | | | | | | This is the first part of the replacement process. Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*. Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow TDE code to continue building till replacement is carried over to all other modules. Once that is completed, the original Q_WS_* defines will be removed. Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 67bff2edcacb208dc44dcd521386bef686dc6dbf)
* Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOTMichele Calgaro2023-12-31472-3800/+3800
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
* Fix potential buffer overflow in debug functions.Slávek Banko2023-12-261-3/+3
| | | | | | | This resolves issue #70. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit a9d178f1000475ba1727ffe123a2c54585488c01)
* Add support for HistoryBackButton and HistoryForwardButtonMavridis Philippe2023-12-173-12/+21
| | | | | | | This resolves TDE/tdebase#421. Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit aec0061106cfff96bb21499850c863b0054ecb5f)
* Update READMEMavridis Philippe2023-12-173-8/+66
| | | | | | | | | A new README with markdown format, updated information on TQt, contributor section and translations status. The old README has been preserved as README.Qt3 for historical reasons. Signed-off-by: Mavridis Philippe <[email protected]> (cherry picked from commit fd6c582f15723514abc973aef946c1dfd895e7e2)
* tqdesigner: prevent SEGV from invalid pointer. This resolves issue #97.Michele Calgaro2023-12-081-1/+9
| | | | | | Signed-off-by: Michele Calgaro <[email protected]> Signed-off-by: ormorph <[email protected]> (cherry picked from commit 6e5c7efaca8c387084817cf1bea6459f5b4e03c2)
* Replaced various '#define' with actual strings - part 3Michele Calgaro2023-11-252-2/+2
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 5eccf2a5e3f08b708221dd5a2042eeb58f176cf1)
* Replace Qt with TQtMichele Calgaro2023-11-1958-292/+292
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 089d5266f0fbf9be6612e9c5f92a3f008f29241c)
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵r14.1.1Michele Calgaro2023-09-24397-7152/+7152
| | | | | | | QIODevice with TQ* version Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit b35e0845dc9b3c8b9a5e52a682c769f383933fae)
* Replace Q_EXPORT_*/Q_EXTERN defines with TQ_EXPORT_*/TQ_EXTERNMichele Calgaro2023-09-14578-1583/+1583
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 1ba13366a7a377d50b9e8df9044ce11d8209f98c)
* Replace various Q_* and QT_* defines with TQ_* and TQT_*Michele Calgaro2023-09-0793-598/+598
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 926102a455014e6ab308aaced19e32eed7ed4414)
* Reintroduced porting documentation previously removedMichele Calgaro2023-07-072-5/+9
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit fd565e9bad03fc401559959b8c3a5f8e3d819b2f)
* Drop attic Qt2 classes (TQtMultiLineEdit and TQtTableView)Michele Calgaro2023-07-076-7128/+0
| | | | | Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 7c116f3bf7ce2c552af7dd8709ee6e726844ef20)
* SunOS res_ninit() requires a clean structureDenis Kozadaev2023-06-151-0/+2
| | | | | | | | | Signed-off-by: Denis Kozadaev <[email protected]> init structure without condition Signed-off-by: Denis Kozadaev <[email protected]> (cherry picked from commit 47f034c129653352ebf258000765f98f1910f2f4)
* Revert "Add single TQObject root parent for all guarded pointers."Michele Calgaro2023-06-131-2/+1
| | | | | | | | | Commit b167d09c was functionally incorrect and is causing issues on selected distributions. This reverts commit b167d09c43be6c8b7d30f0d4fb1bf1e86c51b8a7. This resolves issue TDE/tde#128. (cherry picked from commit fb1f3d64451e8cc405b5db572e2c506564a05680)
* Enable use of pthread's recursive mutexesBobby Bingham2023-06-021-190/+6
| | | | | Signed-off-by: Bobby Bingham <[email protected]> (cherry picked from commit 0b3c8dfbc927e2843c2c62842d53a723d1f1e727)
* 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 <[email protected]> (cherry picked from commit 999cebcb5df0269d24d65db579a7c78a94053c2e)
* socket and nsl functions were moved to libcDenis Kozadaev2023-05-121-1/+1
| | | | | Signed-off-by: Denis Kozadaev <[email protected]> (cherry picked from commit 4ff2cb8b3ccf77ba3e111ac37b3fe0ebb15199eb)
* 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 <[email protected]>
* Remove unnecessary accelerators from .ui filesMichele Calgaro2022-09-2220-255/+0
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Rename ENABLE_QSTYLECONTROLELEMENTDATA_SLOW_COPY in ↵Michele Calgaro2022-04-301-3/+3
| | | | | | ENABLE_TQSTYLECONTROLELEMENTDATA_SLOW_COPY Signed-off-by: Michele Calgaro <[email protected]>
* 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 <[email protected]>
* Update translations binary filesSlávek Banko2022-04-214-0/+0
| | | | | | because they are not generated during build. Signed-off-by: Slávek Banko <[email protected]>
* 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 <[email protected]>