[Interest] QLIneEdit Bug still valid ?

Petric Frank pfrank at gmx.de
Tue Jul 17 02:10:36 CEST 2012


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é




More information about the Interest mailing list