Mailinglist Archive: opensuse-bugs (4790 mails)

< Previous Next >
[Bug 1045181] On Yast partition tool, manually reordered storage devices’ column titles' order is not saved.
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 03 Jul 2017 10:06:25 +0000
  • Message-id: <bug-1045181-21960-gfDmSEdwwX@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1045181
http://bugzilla.suse.com/show_bug.cgi?id=1045181#c2

Stefan Hundhammer <shundhammer@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(shundhammer@suse. |
|com) |

--- Comment #2 from Stefan Hundhammer <shundhammer@xxxxxxxx> ---
This could be made configurable with considerable effort, but not for the
general case since this would require storing unique keys of some kind for
every single tab widget we use (and we use it a lot).

I made something like this for QDirStat, but this was for one very special
widget of that kind (QTreeView which is basically what we use for our table
widget):

https://github.com/shundhammer/qdirstat/blob/master/src/HeaderTweaker.h
https://github.com/shundhammer/qdirstat/blob/master/src/HeaderTweaker.cpp

Screenshot:

https://github.com/shundhammer/qdirstat/blob/master/screenshots/QDirStat-column-config.png


In our use case in libyui-qt we have the added difficulty that the table widget
is commonly destroyed and recreated whenever the content changes. To make this
really usable, we'd have to do something completely transparently on the
libyui-qt level.

Frankly, I'd vote for simply disabling rearranging those columns; this is a
simple flag in the QHeaderView widget:

http://doc.qt.io/qt-5/qheaderview.html#setSectionsMovable

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
This Thread
  • No further messages