summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve handling of the global post event list in order to minimize possible ↵Michele Calgaro2024-08-291-75/+84
| | | | | | | | | | | | | | | 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)
* 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-031-0/+6
| | | | | | | | | | 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)
* Fix TQThreadStorage destruction in the main threadAlexander Golubev2024-03-181-2/+22
| | | | | | | | | | | | | | | | 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 compilation with -no-threadAlexander Golubev2024-03-111-7/+13
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 4100c9e29f3ccb324a68ff1759ebbf1d35849a40)
* Replace Q_WS_* defines with TQ_WS_* equivalentsMichele Calgaro2024-02-141-35/+35
| | | | | | | | | | | | | 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> (cherry picked from commit 67bff2edcacb208dc44dcd521386bef686dc6dbf)
* Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOTMichele Calgaro2023-12-311-3/+3
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit fb401a891f1b426e9419c0cb16403df407138611)
* Replace Q_EXPORT_*/Q_EXTERN defines with TQ_EXPORT_*/TQ_EXTERNMichele Calgaro2023-09-141-12/+12
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 1ba13366a7a377d50b9e8df9044ce11d8209f98c)
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-301-6/+6
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* QT_NO_* -> TQT_NO_* renaming.Michele Calgaro2018-10-171-58/+58
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* qt -> tqt conversion:Michele Calgaro2018-09-271-3/+3
| | | | | | | | | QT_NO_ASCII_CAST -> TQT_NO_ASCII_CAST QT_NO_STL -> TQT_NO_STL QT_NO_COMPAT -> TQT_NO_COMPAT QT_NO_TRANSLATION -> TQT_NO_TRANSLATION Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Conversion QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT. This is part of theMichele Calgaro2018-09-161-37/+37
| | | | | | | qt->tqt conversion and is required to align to corresponding patch for common/admin module. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Automated update from Qt3Timothy Pearson2013-11-251-9/+20
|
* Automated update from Qt3Timothy Pearson2013-08-151-0/+3
|
* Automated update from Qt3Timothy Pearson2013-08-151-2/+6
|
* Automated update from Qt3Timothy Pearson2013-08-061-12/+61
|
* Automated update from Qt3Timothy Pearson2013-06-101-1/+1
|
* Automated update from Qt3Timothy Pearson2013-05-171-1/+1
|
* Automated update from Qt3Timothy Pearson2013-05-141-32/+110
|
* Automated update from Qt3Timothy Pearson2013-04-221-16/+29
|
* Automated update from Qt3Timothy Pearson2013-04-111-1/+2
|
* Automated update from Qt3Timothy Pearson2013-02-241-1/+8
|
* Automated update from Qt3Timothy Pearson2013-02-181-1/+1
|
* Automated update from Qt3Timothy Pearson2012-12-071-7/+10
|
* Automated update from Qt3Timothy Pearson2012-12-061-2/+7
|
* Automated update from Qt3Timothy Pearson2012-12-061-14/+110
|
* Automated update from Qt3Timothy Pearson2012-10-301-0/+31
|
* Automated update from Qt3Timothy Pearson2012-10-161-2/+35
|
* Automated update from qt3Timothy Pearson2012-03-061-100/+100
|
* Automated conversion from qt3Timothy Pearson2012-02-281-21/+21
|
* Automated update from qt3Timothy Pearson2012-02-271-36/+36
|
* Automated update from Qt3Timothy Pearson2012-02-131-10/+10
|
* Update to latest tqt3 automated conversionTimothy Pearson2012-01-261-31/+31
|
* Sync with latest scriptTimothy Pearson2011-12-051-4/+4
|
* Fix native TQt3 accidental conversion to tquitTimothy Pearson2011-11-141-19/+19
|
* Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731Timothy Pearson2011-11-081-0/+4602