KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
781 stars 199 forks source link

Marker Database Browser doesn't keep Cell/Category tab size persistent #1571

Closed stefanottili closed 2 months ago

stefanottili commented 9 months ago

This is an enhancement request.

image

It would be helpful if

a) the Cell/Category would be resized to display the full Cell/Category text. There is ample of space available, now used for Count and/or b) the Cell/Category tab size would be persistent. Currently it has to be resized every time klayout gets started.

stefanottili commented 7 months ago

If this get's addressed, it would be very helpful if the "By Category" would be either always expanded or that the expand state of “by category” and “by cell” would be persistent. This will save yet another mouse click that is currently needed every time errors are viewed.

klayoutmatthias commented 6 months ago

I just tried to reproduce the problem, but at least on Ubuntu-22 with Qt 5.15 the browser window's dimensions and splitter section sizes are persisted (that is part b).

I am using the master branch currently.

This is what I do:

When I reopen and do "Shapes to markers" again, the marker browser window opens with the previous geometry.

I will check on Windows and 0.28.17, if the problem exists there.

klayoutmatthias commented 6 months ago

Looks like the problem is Windows specific. On Windows, the column widths are not persisted :(

stefanottili commented 6 months ago

I read rdb via command line, but that shouldn’t matter. So it seems to be a Mac issue too. With both homebrew 5.15.13 and 6.6.2_1 the tab splitter and the tree strings are not persistent.

klayoutmatthias commented 6 months ago

I need a little more time to debug the problem. It is likely that this is a Qt issue or I am using "restoreState" incorrectly.

I will schedule that for 0.29.1.

Matthias

klayoutmatthias commented 5 months ago

The closest way I came to a solution is by explicitly setting the section resize mode to "interactive". I assume that on some OS (like Windows), the resize mode defaults to "automatic", hence this problem.

klayoutmatthias commented 3 months ago

Sorry, need to shift milestone again. No clue yet :(

stefanottili commented 2 months ago

I build klayout with homebrew qt 6.7 on MacOS and the tab sizes are persistent now !!! Yay. So this bug report can be closed.

It still would save me one click every time when the "Category" would remember that it was expanded last time. Should I file a separate enhancement request ?