octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53275] Variable Editor: Undocking variable wi


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #53275] Variable Editor: Undocking variable window causes it to become nearly full screen
Date: Tue, 6 Mar 2018 18:22:44 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #8, bug #53275 (project octave):

fromTheme was introduced in Qt 4.6:

http://doc.qt.io/archives/qt-4.8/qicon.html#fromTheme

so there shouldn't be any issue in terms of compilation.  There is a fallback
icon as an input in case the platform doesn't supprot theme icons.

I did quite a bit of reading last night and now understand that the system
window manager flags are the only means of modifying the window's title bar. 
That is, there are no widget's associated with the title bar.  Just curious,
why is it that the maximize button is not included, i.e.,:


    setParent (0, Qt::Window | Qt::CustomizeWindowHint | Qt::WindowTitleHint
|
               Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint);


If I change that to simply Qt::Window flags, there is the common maximize
button (+) that will expand/shrink to/from full screen.  Most applications
have that and it is pretty handy.

It's not an easy thing to remove a QWindow title bar (Qt::Window |
Qt::CustomizeWindowHint) because then all of the mousing, etc. no longer works
and has to be implemented manually.  I actually think Octave currently is
doing something out of the ordinary to get the Window Manager title bar on a
QDockWidget.  As Torsten pointed out, we could use setTitleBarWidget (i.e.,
octave_dock_widget) and add maximize/minimize controls there.  I can't seem to
find a means of getting the Window Manager style information though.

Regarding question 3, I think the frame around the undocked variable panels
can be easily corrected with the use of style sheets:

http://doc.qt.io/archives/qt-4.8/stylesheet-examples.html#customizing-qdockwidget

It's simply that the application style sheet is generically copied to the
newly created QDockWidgets and the frame border is probably 0px.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53275>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]