File tree Expand file tree Collapse file tree 4 files changed +14
-14
lines changed
include/rviz_common/properties
src/rviz_common/properties Expand file tree Collapse file tree 4 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 3030#define RVIZ_COMMON__PROPERTIES__ROS_ACTION_PROPERTY_HPP_
3131
3232#include < QObject>
33- #include < QRegExp >
33+ #include < QRegularExpression >
3434#include < QString>
3535
3636#include < memory>
@@ -90,20 +90,20 @@ class RVIZ_COMMON_PUBLIC RosFilteredActionProperty
9090 const QString & default_value = QString(),
9191 const QString & action_type = QString(),
9292 const QString & description = QString(),
93- const QRegExp & filter = QRegExp (),
93+ const QRegularExpression & filter = QRegularExpression (),
9494 Property * parent = 0 ,
9595 const char * changed_slot = 0 ,
9696 QObject * receiver = 0 );
9797
9898 void enableFilter (bool enabled);
9999
100- QRegExp filter () const ;
100+ QRegularExpression filter () const ;
101101
102102protected Q_SLOTS:
103103 void fillActionList () override ;
104104
105105private:
106- QRegExp filter_;
106+ QRegularExpression filter_;
107107 bool filter_enabled_;
108108};
109109
Original file line number Diff line number Diff line change 3030#define RVIZ_COMMON__PROPERTIES__ROS_SERVICE_PROPERTY_HPP_
3131
3232#include < QObject>
33- #include < QRegExp >
33+ #include < QRegularExpression >
3434#include < QString>
3535
3636#include < memory>
@@ -90,20 +90,20 @@ class RVIZ_COMMON_PUBLIC RosFilteredServiceProperty
9090 const QString & default_value = QString(),
9191 const QString & service_type = QString(),
9292 const QString & description = QString(),
93- const QRegExp & filter = QRegExp (),
93+ const QRegularExpression & filter = QRegularExpression (),
9494 Property * parent = 0 ,
9595 const char * changed_slot = 0 ,
9696 QObject * receiver = 0 );
9797
9898 void enableFilter (bool enabled);
9999
100- QRegExp filter () const ;
100+ QRegularExpression filter () const ;
101101
102102protected Q_SLOTS:
103103 void fillServiceList () override ;
104104
105105private:
106- QRegExp filter_;
106+ QRegularExpression filter_;
107107 bool filter_enabled_;
108108};
109109
Original file line number Diff line number Diff line change 3434
3535#include < QApplication> // NOLINT: cpplint can't handle Qt imports
3636#include < QObject> // NOLINT: cpplint can't handle Qt imports
37- #include < QRegExp > // NOLINT: cpplint can't handle Qt imports
37+ #include < QRegularExpression > // NOLINT: cpplint can't handle Qt imports
3838#include < QString> // NOLINT: cpplint can't handle Qt imports
3939#include < QStringList> // NOLINT: cpplint can't handle Qt imports
4040
@@ -121,7 +121,7 @@ RosFilteredActionProperty::RosFilteredActionProperty(
121121 const QString & default_value,
122122 const QString & action_type,
123123 const QString & description,
124- const QRegExp & filter,
124+ const QRegularExpression & filter,
125125 Property * parent,
126126 const char * changed_slot,
127127 QObject * receiver)
@@ -137,7 +137,7 @@ void RosFilteredActionProperty::enableFilter(bool enabled)
137137 fillActionList ();
138138}
139139
140- QRegExp RosFilteredActionProperty::filter () const
140+ QRegularExpression RosFilteredActionProperty::filter () const
141141{
142142 return filter_;
143143}
Original file line number Diff line number Diff line change 3434
3535#include < QApplication> // NOLINT: cpplint can't handle Qt imports
3636#include < QObject> // NOLINT: cpplint can't handle Qt imports
37- #include < QRegExp > // NOLINT: cpplint can't handle Qt imports
37+ #include < QRegularExpression > // NOLINT: cpplint can't handle Qt imports
3838#include < QString> // NOLINT: cpplint can't handle Qt imports
3939#include < QStringList> // NOLINT: cpplint can't handle Qt imports
4040
@@ -119,7 +119,7 @@ RosFilteredServiceProperty::RosFilteredServiceProperty(
119119 const QString & default_value,
120120 const QString & service_type,
121121 const QString & description,
122- const QRegExp & filter,
122+ const QRegularExpression & filter,
123123 Property * parent,
124124 const char * changed_slot,
125125 QObject * receiver)
@@ -135,7 +135,7 @@ void RosFilteredServiceProperty::enableFilter(bool enabled)
135135 fillServiceList ();
136136}
137137
138- QRegExp RosFilteredServiceProperty::filter () const
138+ QRegularExpression RosFilteredServiceProperty::filter () const
139139{
140140 return filter_;
141141}
You can’t perform that action at this time.
0 commit comments