[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are alwa
From: |
Torsten |
Subject: |
[Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI |
Date: |
Mon, 17 Jun 2013 17:31:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0 |
Update of bug #38785 (project octave):
Status: Confirmed => Patch Submitted
_______________________________________________________
Follow-up Comment #12:
Attached a patch with a possible solution to this problem:
* The title bar of each QDockWidget is replaced by a custom one with buttons
for closing and (un)docking.
* When undocking (by means of the new button), the widget is re-parented to 0
which makes it an independent window.
* When re-docked, it is re-added to the main-window.
The new mechanism needs some changes in storing position and size in the
settings and several changes because parent () does not work anymore when the
widget is floating (has no parent).
Drawbacks (so far):
* When re-adding, the widget is really handled as a new dock-widget and is not
added at its old place.
* Dragging a dock widget only works for changing the dock location. It can not
be dragged outside the main window to make it floating (the qt floating
mechanism is disabled since once a widget is dragged, it would become floating
and would be reparented to 0 and the main window is not aware of it anymore
and it can not be dropped into the main window again).
* From above, it directly follows that a floating window can only be re-docked
by the (un)dock button, not by dragging it into the window. Re-docking to a
desired position has to be done in two steps: Re-adding with the button, then
dragging the docked window into the desired position.
The patch is also available at bitbucket:
https://bitbucket.org/ttl/octave-ttl/commits/c64bfd36dc5ddab8de16172d9fa159d76c1b416a
(file #28336)
_______________________________________________________
Additional Item Attachment:
File name: floting_docks_v01.patch Size:17 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38785>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Torsten, 2013/06/14
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI,
Torsten <=
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Philip Nienhuis, 2013/06/17
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Torsten, 2013/06/18
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Philip Nienhuis, 2013/06/18
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Torsten, 2013/06/18
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Philip Nienhuis, 2013/06/18
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Torsten, 2013/06/18
- [Octave-bug-tracker] [bug #38785] GUI / Windows: undocked panes are always on top of GUI, Torsten, 2013/06/21