qt6-bb10/tests/auto/corelib
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
..
animation Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
global CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
io tst_QFile: add a couple more sequential Unix device files 2020-12-10 15:20:33 +01:00
itemmodels Fix invalid QSortFilterProxyModel::dataChanged parameters 2020-11-30 12:39:21 +08:00
kernel QSocketNotifier: extend API to provide more flexible startup 2020-12-11 18:08:31 +02:00
mimetypes CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
plugin Fix tst_qlibrary after rebuild 2020-11-24 21:50:46 +01:00
serialization CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
text CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
thread Add support of invoking QFuture continuations in a given context 2020-12-11 09:36:45 +01:00
time CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
tools CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
.prev_CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
CMakeLists.txt Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
corelib.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00