[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: substring completion in KLineEdit [SOLVED]
From:       Oszkar Ambrus <oszkar.ambrus () deri ! org>
Date:       2009-10-24 18:43:33
Message-ID: 4AE34AD5.6050805 () deri ! org
[Download RAW message or body]

> I still don't see how I can get the LineEdit to perform substring 
> completion and show the appropriate list.
> 
> I can only see workarounds, like subclassing it, and tackling with the 
> KeyPressed function, or grabbing the textChanged signal, filtering the 
> list manually, and feeding it to the popup of the completer.

The solution was fairly simple: subclassing KLineEdit and reimplementing 
the makeCompletion() slot.
It only works for my particular case though (using CompletionPopupAuto).




-- 
Oszkár Ambrus

"Whoever believes in the Son [Jesus Christ] has eternal life"
(John 3:36)

Masters Student, Digital Enterprise Research Institute, NUIG
[http://www.deri.ie]

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic