summaryrefslogtreecommitdiffstats
path: root/src/kernel/qobject.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make TQConnectionList sharedfeat/dedup-tqobjectAlexander Golubev2024-03-161-54/+59
| | | | | | | | | | | | | | This commit fixes crashes caused by modifications of TQobject connections from the slots invoked by its signals. Up to recent time those were hidden by implementation specificities in TQObject::activate_signal(), so they would appear only under quite peculiar circumstances, but after attempts to de-duplicate the code they surfaced up. Besides that the patch de-duplicates some code in TQObject::disconnectInternal(). Signed-off-by: Alexander Golubev <[email protected]>
* qobject.cpp: fix compilation with -DTQT_NO_USERDATAAlexander Golubev2024-03-161-1/+1
| | | | Signed-off-by: Alexander Golubev <[email protected]>
* Add a lock to removing ourself from another's object's sender listAlexander Golubev2024-03-161-20/+19
| | | | | | Also simplify locks around removeObjFromList() in disconnectInternal(). Signed-off-by: Alexander Golubev <[email protected]>
* TQObject::activate_signal: uniformly apply if(sol) checksAlexander Golubev2024-03-161-10/+10
| | | | | | | | It seems the situation where sol is NULL is theoretically possible. So keep the checks and apply those uniformly to all instances of access to `sol`. Signed-off-by: Alexander Golubev <[email protected]>
* Deduplicate code in TQObject::activate_signal()Alexander Golubev2024-03-161-103/+30
| | | | | | | | | | | According to a benchmark the while() loop with direct use of iterators were ~10% slower than the current one which handled case when there is only one connection to a signal separately. But use of a range-based for loop sped up even this case for ~1.5%. Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3/issues/121 Signed-off-by: Alexander Golubev <[email protected]>
* Fix compilation with -no-threadAlexander Golubev2024-03-101-19/+44
| | | | Signed-off-by: Alexander Golubev <[email protected]>
* Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOTMichele Calgaro2023-12-271-35/+35
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Replace Q_EXPORT_*/Q_EXTERN defines with TQ_EXPORT_*/TQ_EXTERNMichele Calgaro2023-09-131-2/+2
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-301-6/+6
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* QT_NO_* -> TQT_NO_* renaming.Michele Calgaro2018-10-171-17/+17
| | | | Signed-off-by: Michele Calgaro <[email protected]>
* Conversion QT_THREAD_SUPPORT -> TQT_THREAD_SUPPORT. This is part of theMichele Calgaro2018-09-161-81/+81
| | | | | | | qt->tqt conversion and is required to align to corresponding patch for common/admin module. Signed-off-by: Michele Calgaro <[email protected]>
* Added safety harness for currentThreadObject() usage.Michele Calgaro2015-07-191-5/+19
| | | | | | | | currentThreadObject() returns a null pointer if the current thread was not started using the TQThread API. This relates to bug 1748. Signed-off-by: Michele Calgaro <[email protected]>
* Automated update from Qt3Timothy Pearson2013-12-221-0/+52
|
* Automated update from Qt3Timothy Pearson2013-11-041-4/+4
|
* Automated update from Qt3Timothy Pearson2013-11-031-4/+16
|
* Automated update from Qt3Timothy Pearson2013-05-141-22/+177
|
* Automated update from Qt3Timothy Pearson2013-05-021-6/+30
|
* Automated update from Qt3Timothy Pearson2013-04-221-4/+11
|
* Automated update from Qt3Timothy Pearson2012-12-061-43/+285
|
* Automated update from qt3Timothy Pearson2012-03-061-12/+12
|
* Automated conversion from qt3Timothy Pearson2012-02-281-48/+48
|
* Automated update from qt3Timothy Pearson2012-02-271-1/+1
|
* Automated update from Qt3Timothy Pearson2012-02-131-20/+20
|
* Update to latest tqt3 automated conversionTimothy Pearson2012-01-261-14/+14
|
* Sync with latest scriptTimothy Pearson2011-12-051-2/+2
|
* Fix native TQt3 accidental conversion to tquitTimothy Pearson2011-11-141-1/+1
|
* Test conversion to TQt3 from Qt3 8c6fc1f8e35fd264dd01c582ca5e7549b32ab731Timothy Pearson2011-11-081-0/+2711