Clipboard selection - solution(?)

Lubos Lunak l.lunak at suse.cz
Fri Nov 15 13:00:13 GMT 2002


On Friday 15 November 2002 03:12, Oswald Buddenhagen wrote:
> On Fri, Nov 15, 2002 at 12:39:20AM +0100, Waldo Bastian wrote:
> > > The differences from the X11-pure style can be:
> > >
> > > 1) text selected by keyboard doesn't become PRIMARY
> > > 5) when a text is selected elsewhere, previously selected text stays
> > > selected with a different color
> >
> > 1) yes
>
> i strongly disagree ... what's your argument against it? i often use it.

 I disagree too, 1) should be IMHO no, even though I don't really insist (does 
somebody really use Shift+arrows->MMB paste?). But as can be seen in your 
response to 5), yes would just create problems.

>
> > 5) no,
>
> ... and therefore this can be done consistently. and i like the idea - i
> have a very bad short-term memory and tend to get confused by what i see
> even if i know better. :}
> btw, if i didn't overlook something, this could be even implemented in a
> mostly source-compatible way. any auto-selections (and therefore the
> current setSelection() and friends in qlineedit, etc.) _never_ set
> PRIMARY. only user-actions (call them external events) set it (of course
> qlineedit would have to use something else then setSelection internally).
> exceptions are "copy link location", etc., which would require a function
> QClipboard::setPrimarySelection() or something like that. dunno about
> the details.

 Oswald, are here saying '4)no, 5)yes' or '4)yes,5)no'? I'm not sure, though 
it seems to me more like the sooner. If yes, then you're right. It's just not 
that easy, 4) is easier to implement (QLineEdit and friends are surprisingly 
complicated beasts).

 BTW, see the attached patch, it's a quick hack to implement 5) for QLineEdit 
(only). To get 4), remove the 'if (nonprimary_selection)' piece from 
qrichtext.cpp .

> > 6) no,

 See Ingo's reply. I think the usability of 6) being yes far outweights all 
possible reasons against.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l.lunak at suse.cz , l.lunak at kde.org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/




More information about the kde-core-devel mailing list