[Interest] QLIneEdit Bug still valid ?

Constantin Makshin cmakshin at gmail.com
Tue Jul 17 02:51:11 CEST 2012


I can't say for sure, but most probably yes.

On 07/17/2012 04:10 AM, Petric Frank wrote:
> Hello René,
> 
> so patching this location to pass false as additional third parameter should 
> fix the issue, right ?
> 
> regards
>   Petric
> 
> Am Dienstag, 17. Juli 2012, 01:06:43 schrieb Constantin Makshin:
>> It works incorrectly only when the validator changes the text.
>>
>> The cause is QLineControl::fixup() (src/gui/widgets/qlinecontrol.cpp,
>> line 387) — it calls QLineControl::internalSetText() with only 2
>> parameters, omitting the one that controls emission of the textEdited()
>> signal. And since that parameter defaults to 'true', you get what you get.
>>
>> On 07/16/2012 03:38 PM, R. Reucher wrote:
>>> On Monday 16 July 2012 09:14:31 Constantin Makshin wrote:
>>>> Functions you are interested in are (line numbers are taken from the
>>>> code in the Git repository):
>>>> src/gui/widgets/qlineedit.cpp, line 383 (QLineEdit::setText)
>>>> src/gui/widgets/qlinecontrol_p.h, line 213 (QLineControl::setText)
>>>> src/gui/widgets/qlinecontrol.cpp, line 676
>>>> (QLineControl::internalSetText) src/gui/widgets/qlinecontrol.cpp, line
>>>> 620 (QLineControl::finishChange)
>>>>
>>>> Nothing looks wrong there...
>>>
>>> Yeah, I also recall it was working correctly when I used it last time...
>>>
>>> However, the example acts "wrongly", but it somehow only happens when
>>> the validator is set. The attached example (w/o the validator) works
>>> correctly.
>>>
>>> HTH, René

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120717/f30b4230/attachment.sig>


More information about the Interest mailing list