qt6-bb10/tests/auto
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
..
cmake Modify test_QFINDTESTDATA to not leave files in source tree 2020-12-09 20:30:05 +01:00
concurrent CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
corelib QSocketNotifier: extend API to provide more flexible startup 2020-12-11 18:08:31 +02:00
dbus QChar: make construction from integral explicit 2020-11-15 14:41:05 +01:00
gui CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
installed_cmake
network CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
opengl Remove tst_QGL 2020-08-28 11:43:11 +02:00
other CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
printsupport Fit tst_qprinterinfo in case there are printers in local network 2020-11-21 06:11:37 +01:00
shared Remove most compiler warnings about missing overrides 2020-09-11 00:20:47 +02:00
sql Cleanup remaining QVariant::Type uses in Qt Sql 2020-10-17 12:01:54 +02:00
testlib Android: exclude faulty tst_selftests 2020-11-25 23:08:09 +02:00
tools CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
widgets QTableView: honor spans when calculating height/width hint 2020-12-10 19:41:26 +01:00
xml CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
.prev_CMakeLists.txt CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
auto.pro Don't error out when configuring Qt on a headless system 2020-09-26 14:36:13 +02:00
network-settings.h Network self-test: make it work with docker/containers 2020-11-17 19:56:06 +01:00