[Development] Qt 5.3 header diff: QtWidgets

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Wed Apr 23 09:40:34 CEST 2014


Il 23/04/2014 01:44, Thiago Macieira ha scritto:
> 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.

I'm fine with them as they're simple forwarders to for the corresponding 
QTextDocument functionality. On the other hand, QTextDocument is missing 
QRegularExpression search...

-- 
Join us Oct 6-8 at BCC Berlin for Qt Developer Days 2014!
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Software Engineer
KDAB (UK) Ltd., a KDAB Group company
Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4048 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140423/725a18fd/attachment.bin>


More information about the Development mailing list