Bug 118491 - Cannot drag a new selection in a pre-existing section.
Summary: Cannot drag a new selection in a pre-existing section.
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 04:55 UTC by Stephen Leaf
Modified: 2009-01-23 21:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Leaf 2005-12-17 04:55:51 UTC
Version:            (using KDE KDE 3.5.0)

Sometimes I over/under shoot what I want selected and then go to try and reselect what I wanted.
However if where I need is already selected I first have to deselect it by clicking somewhere else and then select what I want.

Because you can't move your selection by clicking and trying to drag your selection. I'd like to be able to reselect.
Or
Be able to drag a selection and/or resize it.
Comment 1 Reinhold Kainhofer 2006-11-02 19:26:42 UTC
Reassigning all KOrganizer bug reports and wishes to the newly created 
korganizer-devel mailing list.
Comment 2 Sergio Martins 2009-01-23 04:38:52 UTC
I also agree, it's a bit counter-intuitive.

Still, there's a comment in the code that suggests that the actual behaviour was done on purpose...



Index: views/agendaview/koagenda.cpp                                                   
===================================================================                    
--- views/agendaview/koagenda.cpp       (revision 915399)
+++ views/agendaview/koagenda.cpp       (working copy)
@@ -636,14 +636,11 @@
         }
         showNewEventPopupSignal();
       } else {
-        // if mouse pointer is in selection, don't change selection
         QPoint gpos = contentsToGrid( viewportToContents( viewportPos ) );
-        if ( !ptInSelection( gpos ) ) {
-          selectItem( 0 );
-          mActionItem = 0;
-          setCursor( Qt::ArrowCursor );
-          startSelectAction( viewportPos );
-        }
+        selectItem( 0 );
+        mActionItem = 0;
+        setCursor( Qt::ArrowCursor );
+        startSelectAction( viewportPos );
       }
     }
     break;
Comment 3 Sergio Martins 2009-01-23 21:05:47 UTC
SVN commit 915800 by smartins:

Now, when selecting an area we don't need to click somewhere else first
to clear an existing selection, it gets cleared automatically.

BUG: 118491


 M  +4 -8      koagenda.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=915800