Thoughts on the "default syntax highlighter for QTextEdit" task

Kevin Ottens ervin+bluesystems at kde.org
Mon Aug 5 10:00:15 UTC 2013


On Monday 05 August 2013 11:54:15 Aleix Pol wrote:
> On Mon, Aug 5, 2013 at 11:02 AM, Kevin Krammer <krammer at kde.org> wrote:
> > On Thursday, 2013-08-01, Aurélien Gâteau wrote:
> > > Should work, but extending the QPlatformIntegration class for such a
> > > feature feels a bit overkill to me. Is there a simpler alternative?
> > 
> > If at all then QPlatformIntegration is probably the wrong place, more like
> > QPlatformTheme (which handles things more similar like native menu, native
> > dialogs).

Agreed.

> On the other hand, I agree that doing this kind of things is a bit at the
> limit of what QPT does... I don't know how much of a hack is to have this
> in KStyle...

The problem would be that as soon as the user uses a different style than one 
inheriting KStyle, the default highlighter would be lost. Not sure there's a 
perfect solution here, but that's probably something to keep in mind.
 
Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

Sponsored by BlueSystems and KDAB to work on KDE Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130805/8275d08a/attachment.sig>


More information about the Kde-frameworks-devel mailing list