Thoughts on the "default syntax highlighter for QTextEdit" task
Kevin Krammer
krammer at kde.org
Mon Aug 5 14:14:34 UTC 2013
On Monday, 2013-08-05, Kevin Ottens wrote:
> 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.
True.
I was mostly thinking style because "hightlighting" just sounds like something
that would have to match the style's other visualization choices.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130805/26525529/attachment.sig>
More information about the Kde-frameworks-devel
mailing list