Em ter 22 abr 2014, às 14:12:46, Thiago Macieira escreveu:
> --- a/src/widgets/widgets/qplaintextedit.h
> +++ b/src/widgets/widgets/qplaintextedit.h
> @@ -141,6 +145,9 @@ public:
>      bool centerOnScroll() const;
>  
>      bool find(const QString &exp, QTextDocument::FindFlags options = 0);
> +#ifndef QT_NO_REGEXP
> +    bool find(const QRegExp &exp, QTextDocument::FindFlags options = 0);
> +#endif

Remove this new method. Add one with QRegularExpression. 

QRegExp is deprecated.

> --- a/src/widgets/widgets/qtextedit.h
> +++ b/src/widgets/widgets/qtextedit.h
> 
> @@ -162,6 +162,9 @@ public:
>      void setWordWrapMode(QTextOption::WrapMode policy);
>      
>      bool find(const QString &exp, QTextDocument::FindFlags options = 0);
> 
> +#ifndef QT_NO_REGEXP
> +    bool find(const QRegExp &exp, QTextDocument::FindFlags options = 0);
> +#endif

Ditto.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to