https://bugzilla.novell.com/show_bug.cgi?id=441828
User ciobi@inbox.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=441828#c16
--- Comment #16 from Marian Ciobanu 2008-12-11 13:28:49 MST ---
Created an attachment (id=259514)
--> (https://bugzilla.novell.com/attachment.cgi?id=259514)
Proposed solution for resizing the columns
I'm working on an open source program which needs for a QTableView to show as
much information as possible. Now that I'm (mostly) done with that, I adapted
it to work with a QTreeWidget and I tested it in YaST to address this bug.
Since I'm quite pleased with the results, I'm posting a patch in the hope that
others will have a look and perhaps it will be integrated into the official
build.
The main idea is to resize the columns based on cell content, after the list
has been populated.
The way my class is connected now to YaST is more of a hack currently, but
improving this is no big deal.
In the attachment I included the patch as well as the changed/new files, so
they can be easy looked at.
To build YaST, have a look at http://en.opensuse.org/YaST_Development
To apply the patch, copy ColumnResize.patch to <YaST-dir>trunk/qt-pkg , then go
to <YaST-dir>trunk/qt-pkg/src and run:
patch -p1 < ../ColumnResize.patch
Please let me know if you have trouble building or if you think the resizing
can be significantly improved (there should be no horizontal scrollbar and most
of the content should be visible, but it may be that what I did works well on
my machine and not so well on others).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.