Summary: | Adding a drag and drop capability | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Grégoire Verlut <gregoire.verlut> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 2.0.3 | ||
Target Milestone: | 2.0.5 | ||
Platform: | Microsoft Windows | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Grégoire Verlut
2011-05-05 10:17:41 UTC
This shouldn't be too hard to implement. Tentatively set the target to 2.0.5 SVN commit 1284152 by brisset: Add drag&drop feature: - if dropping a .kst file, open it after checking what needed to be saved has been saved - if dropping something else, open it in the datawizard The prompt to save feature in case of change has been refactored along the way to make it more readable code-wise. I hope I haven't broken anything. The reason why our previous attempt had not been conclusive is that we have to setAcceptDrops(false) all the way down the parent chain: _tabWidget *and* View. Note: my tests exposed a bug: adding view items is not registered as a change. This should be fixed! M +45 -19 mainwindow.cpp M +4 -1 mainwindow.h M +2 -0 scene.cpp M +2 -0 view.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1284152 |