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

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

[Octave-bug-tracker] [bug #55899] "macintos" style in Preferences > Gene


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #55899] "macintos" style in Preferences > General
Date: Wed, 13 Mar 2019 16:52:19 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

Follow-up Comment #3, bug #55899 (project octave):

> In terms of writing less brittle code, is there a way to indicate to Qt to
size the dropdown based on the contents? That would change naturally as the
strings themselves change. 

I think that's already in effect: there's a "preferred size" that I think is
based on the text contents. I think that's why the Language dropdown was
rendering as wider than the Styles dropdown, even though they had the same
preferred size and appeared the same width in the designer view. I don't know
why the Styles dropdown wasn't expanding enough to accomodate "macintosh".

Or maybe the Preferred Size is based on the original dummy contents in the
designer view, and not the dynamically-populated contents added at run time:
maybe these widgets don't resize at run time in reponse to added or removed
items.

> What happens if you leave off specifying a size entirely (well, a minimum
size is okay)? Does Qt do auto-sizing then?

I don't know. I did this in the Qt Designer GUI, only adjusting the Minimum
sizes of the dropdowns, and this was the result. Note that the fixed sizes (as
opposed to minimum sizes) are only on generic "areaWidgetContents" widgets.

I'll manually try removing the sizes entirely and rebuild and see what
happens.

When other developers have been editing this file, are they hacking on it
directly in a text editor, or using Qt Designer to manipulate it?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55899>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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