Skip to content

Commit f35dee1

Browse files
committed
Optionally deprecate old-style slots via -DRVIZ_DEPRECATE_QT4_SLOTS
1 parent 5164222 commit f35dee1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rviz/properties/property.h

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ class RVIZ_EXPORT Property : public QObject
161161
using QObject::connect; // inherit QObject's connect functions
162162

163163
/// Connect changed() signal to given slot of receiver
164+
#ifdef RVIZ_DEPRECATE_QT4_SLOTS
165+
[[deprecated("Switch to modern function/functor based slot specification")]]
166+
#endif
164167
QMetaObject::Connection
165168
connect(const QObject* receiver, const char* slot, Qt::ConnectionType type = Qt::AutoConnection);
166169

0 commit comments

Comments
 (0)