Skip to content

Commit

Permalink
Optionally deprecate old-style slots via -DRVIZ_DEPRECATE_QT4_SLOTS
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Mar 31, 2023
1 parent 5164222 commit f35dee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rviz/properties/property.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ class RVIZ_EXPORT Property : public QObject
using QObject::connect; // inherit QObject's connect functions

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

Expand Down

0 comments on commit f35dee1

Please sign in to comment.