From bff19014eb40f0bcf6d4fc64215cf425c2eb0026 Mon Sep 17 00:00:00 2001
From: Gatis Paeglis <gatis.paeglis@qt.io>
Date: Tue, 19 Sep 2017 16:50:51 +0200
Subject: [PATCH] doc: remove a note about functor-based connection complexity
 for overloads
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

What we had initially:

connect(slider, &QSlider::valueChanged,
        lcd, static_cast<void (QLCDNumber::*)(int)>(&QLCDNumber::display));

was more complex than string-based solution:

connect(slider, SIGNAL(valueChanged(int)),
        lcd, SLOT(display(int)));

But since Qt 5.7 we have qOverload/QOverload:

connect(slider, &QSlider::valueChanged,
        lcd, QOverload<int>::of(&QLCDNumber::display));

connect(slider, &QSlider::valueChanged,
        lcd, qOverload<int>(&QLCDNumber::display));

Which is not complex at all, just a bit different to what Qt developers
are used to.

Task-number: QTBUG-63297
Change-Id: I49f7bf228812ceadc38c601d8a711fd250216b52
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
---
 doc/src/signalslotsyntaxes.qdoc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/doc/src/signalslotsyntaxes.qdoc b/doc/src/signalslotsyntaxes.qdoc
index 14400b43..1b88afae 100644
--- a/doc/src/signalslotsyntaxes.qdoc
+++ b/doc/src/signalslotsyntaxes.qdoc
@@ -61,10 +61,6 @@ The table below summarizes their differences.
     \li Can connect C++ functions to QML functions
     \li Y
     \li
-\row
-    \li Selecting an instance of an overloaded signal or slot is...
-    \li Simple
-    \li Complex
 \endtable
 
 The following sections explain these differences in detail and demonstrate how
-- 
GitLab