qt5base-lts/tests/auto/corelib/kernel
Alex Trotsenko 6dac45b246 QSocketNotifier: extend API to provide more flexible startup
Technically, having a single constructor limits the use-cases for this
class. We should take into account that:

  - an opened socket descriptor must be available at the moment of
    construction;
  - the constructor unconditionally enables the notifier (the possible
    solution

        notifier = new QSocketNotifier(...);
        notifier->setEnabled(false);

    is suboptimal due to heavy operations inside the event dispatcher);
  - for these reasons, QSocketNotifier most often cannot be a member of
    another class (we have an extra allocation and indirect access).

This patch addresses this shortcoming by making it possible to set the
socket descriptor at a later point:

[ChangeLog][QtCore][QSocketNotifier] Added setSocket() and an additional
constructor which requires no socket.

Change-Id: I2eb2edf33ddafe99e528aac7d3774ade40795e7a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
2020-12-11 18:08:31 +02:00
..
qcoreapplication Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qdeadlinetimer QDeadlineTimer: optimize when std::chrono::steady_clock is the same 2020-12-09 12:54:59 -07:00
qelapsedtimer Fix tst_QDeadlineTimer::stdchrono() flaky test 2020-10-27 17:43:12 +02:00
qeventdispatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qeventloop Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qmath Add some tests for various qmath.h functions 2020-11-17 19:55:04 +01:00
qmetacontainer QSet: add missing insert-with-hint 2020-11-25 22:08:09 +01:00
qmetaenum CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetamethod CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetaobject QMetaObjectPrivate: Add firstMethod 2020-11-30 17:16:22 +01:00
qmetaobjectbuilder QMetaObjectBuilder: remove relocatable data support 2020-11-30 17:16:21 +01:00
qmetaproperty CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmetatype Add a way to check whether a metatype has datastream operators 2020-12-01 16:01:08 +01:00
qmimedata CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qobject QMetaProperty::typeName: use name from metatype 2020-11-30 17:16:21 +01:00
qpointer Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qproperty QProperty: Handle eager binding calling setBinding 2020-12-09 12:48:36 +01:00
qsharedmemory QSharedMemory: do not abuse QChar in a test 2020-11-08 02:13:22 +00:00
qsignalblocker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsignalmapper CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsocketnotifier QSocketNotifier: extend API to provide more flexible startup 2020-12-11 18:08:31 +02:00
qsystemsemaphore CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtimer Test QTimer's isSingleShot() and timerType() 2020-11-17 19:55:05 +01:00
qtranslator Add test for QTranslator::load() translation file lookup algorithm 2020-12-03 07:49:58 +01:00
qvariant Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qwineventnotifier CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
CMakeLists.txt Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
kernel.pro Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00