<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:glogow@fbihome.de" title="Jan-Marek Glogowski <glogow@fbihome.de>"> <span class="fn">Jan-Marek Glogowski</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - KDE-integration (Plasma 5): shifting/inserting rows with Alt+Shift not working correctly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126560">bug 126560</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
<td>glogow@fbihome.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - KDE-integration (Plasma 5): shifting/inserting rows with Alt+Shift not working correctly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126560#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - KDE-integration (Plasma 5): shifting/inserting rows with Alt+Shift not working correctly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=126560">bug 126560</a>
from <span class="vcard"><a class="email" href="mailto:glogow@fbihome.de" title="Jan-Marek Glogowski <glogow@fbihome.de>"> <span class="fn">Jan-Marek Glogowski</span></a>
</span></b>
<pre>(In reply to Rainer Fiebig from <a href="show_bug.cgi?id=126560#c5">comment #5</a>)
<span class="quote">> (In reply to Jan-Marek Glogowski from <a href="show_bug.cgi?id=126560#c4">comment #4</a>)
> > BTW: I find it easier to test this in Writer with copying / moving selected
> > text in a document.
>
> You seem to be talking of a different problem. The one that I'm having here
> is exactly as described above. And if you can't reproduce it, you don't have
> it. Maybe only certain QT- or Frameworks-versions are affected.</span >
I can reproduce this problem. As I wrote I find it easier to Drag and Drop
(DnD) text inside Writer, nothing else. From the source codes POV both are the
same. Broken DnD handling.
While I already have a fix for the drop target handling implemented, there
seems to be no way to fix the visual cursor feedback for DnD. I already found
that I don't get any Qt events, if I just press a modifier button while in DnD.
I tested a key handlers, the DnD handers, the "ActionChanged" event of QDrag;
nothing happens. And then I found this open Qt bug:
<a href="https://bugreports.qt.io/browse/QTBUG-56218">https://bugreports.qt.io/browse/QTBUG-56218</a> . It was opened in 2017-09 for Qt
5.6 :-( The last comments claim the modifier handling is fixed in Qt 5.12, but
it's still open.
<span class="quote">> I can confirm however that the mouse pointer doesn't change when selecting
> and then moving text with the mouse in Writer which is somewhat irritating.
> But this also occurs without KDE-integration.</span >
That is quite probably a completely different problem, but I'm not so sure.
QDrag can set a different icon / cursor per drag action:
<a href="https://doc.qt.io/qt-5/qdrag.html#setDragCursor">https://doc.qt.io/qt-5/qdrag.html#setDragCursor</a>.
Still my cursor changes for the gtk3 and gen backend, if I press Ctrl. And if I
press the Alt key, the border of the selected cells changes in Calc to indicate
the move, if I move the dragged cells around. "Fun" fact that I haven't found
any code handling Alt in DnD handlers.
>From my current POV the qt5 code does the same then the gtk+ code, but the
latter works and my code doesn't, so there is still something missing. Maybe
it's the special modifiers LO key event, which isn't yet implemented in qt5 but
only in gtk+. Never saw it called yet.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>