Summary: | Implement proper drag and drop support for KUrlComboBox | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | Viesturs Zarins <viesturs.zarins> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | faure, romain.perier |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Viesturs Zarins
2008-03-06 08:12:38 UTC
For a simple test you can run kompare - it has a startup dialog with two KUrlComboBox fields. Well, that's what the clear button is for, actually... (In reply to comment #2) > Well, that's what the clear button is for, actually... Yes, the Clear button helps, but it's just a workaround. The drag and drop feature should NOT introduce invalid URLs, but it does, by inserting the dropped URL at the cursor position. Also an URL field can contain only a single URL, so the obvious drop behavior is to replace the existing URL. OK, I agree, when dragging full URLs (text/uri-list) we can handle the drop by replacing the existing URL. This won't affect drops of plain-text-only, e.g. selecting a url or part of a url in konqueror's location bar. Sure, that is perfectly reasonable.(In reply to comment #4) > OK, I agree, when dragging full URLs (text/uri-list) we can handle the drop by > replacing the existing URL. This won't affect drops of plain-text-only, e.g. > selecting a url or part of a url in konqueror's location bar. Sure, that makes perfect sense. Apparently this problem occurs only when the DnD data is text/plain (or equivalent). typically using firefox (or rekonq) try to DnD the url, it works (at least here), but now try from chrome it fails. I made some tests and finally I found the following (using kDebug() and verbosity from kdelibs) : - From chrome the DnD data isn't text/uri-list compatible, but text/plain , text/plain?charset=utf8 - From firefox the DnD data can be converted to text/uri-list, text/plain, text/text/x-moz-url ... When the DnD data is ONLY text/plain compatible the drop event isn't handle by KLineEdit (Delegated from kcombobox inherited from KUrlComboBox) but by QLineEdit instead, and the behaviour is different, as well. I made these tests using KDE 4.5.2 and KDE 4.5.2+kdelibs4.6(trunk). Could you test it ? r815275 | ereslibre | 2008-06-01 16:06:17 +0200 (Sun, 01 Jun 2008) | 2 lines Make it possible to drag from the icon the url. For example, open/save dialogs as well as dolphin benefit from this fix (usability fix). As I said the behaviour using chrome is normal, and this bug was already fixed in 2008. -> RESOLVED |