diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,7 +18,7 @@ GROUP_BASE_NAME KF VERSION ${KF5_VERSION} DEPRECATED_BASE_VERSION 0 - DEPRECATION_VERSIONS 5.0 + DEPRECATION_VERSIONS 5.0 5.65 EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT} ) diff --git a/src/kregexpeditor/kregexpeditorinterface.h b/src/kregexpeditor/kregexpeditorinterface.h --- a/src/kregexpeditor/kregexpeditorinterface.h +++ b/src/kregexpeditor/kregexpeditorinterface.h @@ -25,6 +25,7 @@ #include +#if KTEXTWIDGETS_ENABLE_DEPRECATED_SINCE(5, 65) /** * @class KRegExpEditorInterface kregexpeditorinterface.h * @@ -91,15 +92,16 @@ * // Don't offer the editor widget. * } * \endcode - * + * @deprecated since 5.65 due to no functional implementation */ class KRegExpEditorInterface { public: /** * returns the regular expression of the editor in Qt3 QRegExp * syntax. Note, there is also a 'regexp' Qt property available. */ + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual QString regExp() const = 0; virtual ~KRegExpEditorInterface() {} @@ -132,8 +134,11 @@ * Set the regular expression for the editor. The syntax must be Qt3 * QRegExp syntax. */ + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual void setRegExp(const QString ®exp) = 0; + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual void redo() = 0; + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual void undo() = 0; /** @@ -143,18 +148,20 @@ * this method will be used to give the widget a text to show matches of * the regular expression on. */ + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual void setMatchText(const QString &) = 0; /** * This method allows for future changes that will not break binary * compatibility. DO NOT USE! * * See http://techbase.kde.org/Policies/Binary_Compatibility_Issues_With_C++ */ + KTEXTWIDGETS_DEPRECATED_VERSION(5, 65, "No functional implementation") virtual void doSomething(const QString& method, void *arguments) = 0; }; Q_DECLARE_INTERFACE(KRegExpEditorInterface, "org.kde.KRegExpEditorInterface/1.0") - +#endif #endif