[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: Re: KTextEditor::SearchInterface
From: Andreas Cord-Landwehr <cordlandwehr () kde ! org>
Date: 2015-03-20 17:36:14
Message-ID: 4308848.rpG1b6qYPE () weatherwax
[Download RAW message or body]
On Sunday 01 March 2015 10:42:36 Sven Brauch wrote:
> On 01/03/15 10:33, Andreas Cord-Landwehr wrote:
> > It's at [1] at line 790ff.
>
> It looks like you could simply replace it by a QString::indexOf call, maybe?
Hi, after some further code digging I found a couple of other places [1] where
the search interface is used (using options RegEx, CaseInsensitive, or
Backwards). From my current point of view (and an IRC discussion with Sven),
working around the missing search-interface is possible by simply using
indexOf, QRegExp and adding all the boilderplate code to work with Range and
Curser elements from KTextEditor.
However, for me it looks like re-implementing something that is already there
for Kate, and IMO it seems much more straight forward to simply allow a
(minimalistic) search interface for KTextEditor.
I got Sven to be "undecided" about it, other opinions? :)
Cheers,
Andreas
[1]
http://quickgit.kde.org/?p=kile.git&a=blob&h=cb4e610f0064791585836137d92b3dd8dbfde45a&hb=c4883fa50f2666b503bb846e5a2e1a48b0f2cf5b&f=src%2Feditorextension.cpp
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic