[Libreoffice-bugs] [Bug 126560] KDE-integration (Plasma 5): shifting/inserting rows with Alt+Shift not working correctly

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 8 09:23:47 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=126560

Jan-Marek Glogowski <glogow at fbihome.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-bugs at lists.free |glogow at fbihome.de
                   |desktop.org                 |

--- Comment #7 from Jan-Marek Glogowski <glogow at fbihome.de> ---
(In reply to Rainer Fiebig from comment #5)
> (In reply to Jan-Marek Glogowski from comment #4)
> > 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.

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:
https://bugreports.qt.io/browse/QTBUG-56218 . 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.

> 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.

That is quite probably a completely different problem, but I'm not so sure.
QDrag can set a different icon / cursor per drag action:
https://doc.qt.io/qt-5/qdrag.html#setDragCursor.

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190808/d9abf2b2/attachment.html>


More information about the Libreoffice-bugs mailing list