[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55350] Figure toolbar disappears with uicontr
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #55350] Figure toolbar disappears with uicontrol or uipanel (qt toolkit) |
Date: |
Mon, 31 Dec 2018 18:48:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #3, bug #55350 (project octave):
The code for this is in libgui/graphics/Figure.cc. I don't understand the
reason, but whenever there is a uicontrol object we explicitly stop drawing
the toolbar.
// Toolbar and menubar
createFigureToolBarAndMenuBar ();
int toffset = 0;
if (fp.toolbar_is ("figure")
|| (fp.toolbar_is ("auto") && fp.menubar_is ("figure")
&& ! hasUiControlChildren (fp)))
{
toffset += m_figureToolBar->sizeHint ().height ();
boffset += m_statusBar->sizeHint ().height ();
}
else
{
m_figureToolBar->hide ();
m_statusBar->hide ();
}
Try the attached patch. It works for the test case you provided.
(file #45820)
_______________________________________________________
Additional Item Attachment:
File name: 55350.cset Size:2 KB
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55350>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/