From kde-devel Sat Oct 24 18:43:33 2009 From: Oszkar Ambrus Date: Sat, 24 Oct 2009 18:43:33 +0000 To: kde-devel Subject: Re: substring completion in KLineEdit [SOLVED] Message-Id: <4AE34AD5.6050805 () deri ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=125640988925834 > 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 <<