[Kst] [Bug 272510] Adding a drag and drop capability

Nicolas Brisset nicolas.brisset at eurocopter.com
Wed Mar 7 23:48:05 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=272510

Nicolas Brisset <nicolas.brisset at eurocopter.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Nicolas Brisset <nicolas.brisset at eurocopter.com> ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kst mailing list