summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* TQRegExp: fix engine cache destruction orderingAlexander Golubev2024-03-291-41/+76
| | | | | | | | In case there are static TQRegExp instances the regexp engine cash might be destroyed before them; hence we need some special handling of construction/destruction of the cache objects. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* TQTextCodec: avoid dangling pointer to current locale's codecAlexander Golubev2024-03-291-1/+12
| | | | | | | | This fixes crashes cause by dangling pointer returned from TQTextCodec::codecForLocale(). That might happen when tqWarning() and such are called during final cleanup. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Reset TQThreadInstance::currentThread() value when destroying main threadAlexander Golubev2024-03-291-0/+3
| | | | | | | | | | This assures that TQRegExp who checks if there is an active thread through this interface won't try to access its already destroyed TQThreadLocalStorage, which might happen during destruction of static TQRegExp objects. Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3/issues/142 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* TQTextEdit: remove one of two readOnly flagsAlexander Golubev2024-03-292-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>
* TQTextEdit: add missing mightStartDrag initializationAlexander Golubev2024-03-291-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>
* [DONTMERGE] Add debug tracers for TQFont and TQFontMetrics creationAlexander Golubev2024-03-292-1/+84
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Improve TQFont-related cleanupAlexander Golubev2024-03-297-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>
* 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>
* examples/canvas: fix some memory leaksAlexander Golubev2024-03-222-9/+22
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Translated using Weblate (Portuguese)Hugo Carvalho2024-03-211-85/+85
| | | | | | | Currently translated at 100.0% (464 of 464 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt/
* Translated using Weblate (Portuguese (Brazil))Hugo Carvalho2024-03-211-1/+1
| | | | | | | Currently translated at 100.0% (464 of 464 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt_BR/
* TQPrintDialog: cleanup data requested from libcupsAlexander Golubev2024-03-211-0/+5
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* 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>
* Translated using Weblate (Portuguese)Hugo Carvalho2024-03-201-464/+483
| | | | | | | Currently translated at 100.0% (464 of 464 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/pt/
* 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>
* 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>
* Zero padding bytes in DndReceiverProp struct.Alexander Golubev2024-03-191-1/+1
| | | | | | This removes valgrind's complains about accessing uninitialized memory. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* 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>
* 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>
* 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>
* gitignore: add a couple more testsAlexander Golubev2024-03-161-0/+3
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Add explicit declaration TQChar&TQCharRef default constructor/destructorAlexander Golubev2024-03-141-0/+12
| | | | | | This suppresses -Wdeprecated-copy warning. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Resort includes in ntqt.hAlexander Golubev2024-03-131-5/+5
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* ./configure: turn thread support on by defaultAlexander Golubev2024-03-111-1/+0
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Avoid setting CONFIG=thread in qmake.confAlexander Golubev2024-03-105-5/+5
| | | | | | Otherwise it's impossible to override in ./configure Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Fix compilation with -no-threadAlexander Golubev2024-03-104-27/+61
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* 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>
* Fix compilation with -disable-inputmethod and -no-inputmethodAlexander Golubev2024-03-074-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>
* 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>
* Fix FTBFS with -no-stlAlexander Golubev2024-03-041-0/+2
| | | | | | On modern compilers placement new requires inclusion of <new> Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* 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 <fatzer2@gmail.com>
* gitignore: add missing examples (sound, tablet)Alexander Golubev2024-02-291-0/+4
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* 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 <fatzer2@gmail.com>
* fix grep complain in configure: "warning: stray \ before c"Alexander Golubev2024-02-211-3/+3
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Remove original Q_WS_* definesMichele Calgaro2024-02-202-22/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Add .gitignore fileAlexander Golubev2024-02-191-0/+303
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Replace QT_STATIC_CONST_* with actual definitionsMichele Calgaro2024-02-1512-155/+129
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Q_WS_* defines with TQ_WS_* equivalentsMichele Calgaro2024-02-12209-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 <michele.calgaro@yahoo.it>
* Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOTMichele Calgaro2023-12-27472-3800/+3800
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix potential buffer overflow in debug functions.Slávek Banko2023-12-261-3/+3
| | | | | | This resolves issue #70. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* 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 <mavridisf@gmail.com>
* Add support for HistoryBackButton and HistoryForwardButtonMavridis Philippe2023-12-163-12/+21
| | | | | | This resolves TDE/tdebase#421. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* tqdesigner: prevent SEGV from invalid pointer. This resolves issue #97.Michele Calgaro2023-12-081-1/+9
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: ormorph <roma251078@mail.ru>
* Translated using Weblate (Russian)Andrei Stepanov2023-12-031-1/+1
| | | | | | | Currently translated at 100.0% (488 of 488 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/ru/
* Translated using Weblate (Russian)Andrei Stepanov2023-12-011-1/+1
| | | | | | | Currently translated at 100.0% (488 of 488 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/ru/
* Replaced various '#define' with actual strings - part 3Michele Calgaro2023-11-242-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Qt with TQtMichele Calgaro2023-11-1958-292/+292
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Translated using Weblate (Russian)Andrei Stepanov2023-11-051-1/+1
| | | | | | | Currently translated at 100.0% (488 of 488 strings) Translation: dependencies/tqt3 Translate-URL: https://mirror.git.trinitydesktop.org/weblate/projects/dependencies/tqt3/ru/
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵Michele Calgaro2023-09-23396-7141/+7141
| | | | | | 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-13577-1582/+1582
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>