[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only) |
Date: |
Tue, 31 Mar 2015 18:05:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 |
Follow-up Comment #7, bug #44669 (project octave):
The first problem, Qt double-clicks, seems relatively straightforward although
there could be a lot of code duplication. In Canvas.cc there is a routine for
handling single clicks.
Canvas::canvasMousePressEvent (QMouseEvent* event)
And further on in this code there is
gh_manager::post_set (figObj.get_handle (), "selectiontype",
Utils::figureSelectionType (event), false);
And the prototype for figureSelectionType in QtHandlesUtils.cc is
figureSelectionType (QMouseEvent* event, bool isDoubleClick)
so it is the false in the function call that needs to be true for
dobule-clicks.
Back in Canvas.cc there is a routine for double-clicks.
Canvas::canvasMouseDoubleClickEvent (QMouseEvent* event)
But it is missing most of the code from the single-click routine, including
the setting of figureSelectionType.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44669>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available, Guillaume, 2015/03/30
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Rik, 2015/03/30
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Andreas Weber, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Rik, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Guillaume, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), John Donoghue, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Rik, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only),
Rik <=
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Rik, 2015/03/31
- [Octave-bug-tracker] [bug #44669] SelectionType "open" for double-click non available (Qt-only), Guillaume, 2015/03/31