Bug 513242 - Software Mgmt. "Size" Column Can't Be Resized to Display All Content
Summary: Software Mgmt. "Size" Column Can't Be Resized to Display All Content
Status: RESOLVED FIXED
: 508807 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Factory
Hardware: All Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Thomas Göttlicher
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 16:15 UTC by David Rankin
Modified: 2009-07-20 18:35 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Software manager without the left panel (260.80 KB, image/png)
2009-06-15 16:48 UTC, Dave Plater
Details
Software manager with the left panel (331.33 KB, image/png)
2009-06-15 16:50 UTC, Dave Plater
Details
David Rankins qt software management ui with 8 character size column (205.17 KB, image/jpeg)
2009-06-23 06:12 UTC, Dave Plater
Details
patch for YQPkgList.cc to fix the size column (226 bytes, patch)
2009-07-13 12:05 UTC, Dave Plater
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Rankin 2009-06-15 16:15:31 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042700 SUSE/3.0.10-1.1 Firefox/3.0.10

        In KDE 4.2.90 (Beta 2) I am trying to resize the size column in yast to make it readable, but I can't seem to make it work. The problem is there is no way to grab the "right" side of the 'size' column and expand it to make the contents fully visible. Currently the size is "chopped" off for many packages:

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/yast-size-column-2.jpeg

http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/yast-size-column-still-small.jpeg

	There is no question about it, this is a "size" column issue. All other columns behave properly, but not the size column.

        Try this: Move the size column in between the "Summary" and "Installed (Available)" columns by just left-clicking (and hold) and dragging the column header to the left. Now try and put the pointer between the "Size" and "Installed  (Available)" column to get a double-arrow cursor ... You can't. Now take and put the pointer on the right of any other column (including the "Installed  (Available)" column which is now the rightmost column). You get the double-arrow and can resize every other column except the "size column".

        It seems that there is some type of qt column restriction on the "size" column that isn't set on any of the others.


Reproducible: Always

Steps to Reproduce:
1. Open Yast SW Mgmt
2. Choose "Repositories" to get a package list (anything else will do)
3. Try your heart out to resize the "Size" columnt
Actual Results:  
You cannot resize the size column to make all text visible

Expected Results:  
You should be able to resize the size column to make all text visible
Comment 1 Dave Plater 2009-06-15 16:48:33 UTC
Created attachment 298159 [details]
Software manager without the left panel
Comment 2 Dave Plater 2009-06-15 16:50:34 UTC
Created attachment 298160 [details]
Software manager with the left panel
Comment 3 David Rankin 2009-06-16 16:34:23 UTC
This may help:

	zypper says I have the latest version of yast2 installed and when I updated, it did pull in all the dependent packages. Checking, zypper says:

[20:49 alchemy:/usr/lib64/jvm] # zypper up yast2
Loading repository data
Reading installed packages
No update candidate for 'yast2'
Resolving package dependencies
Nothing to do

	Here is my yast package list:

18:33 alchemy:~> rpm -qa | grep yast 
yast2-irda-2.16.1-25.1
yast2-security-2.16.1-16.1
yast2-users-2.16.33-6.1
yast2-ycp-ui-bindings-2.18.5-1.6
yast2-scanner-2.16.10-13.1
yast2-tv-2.16.6-7.1
yast2-network-2.16.48-3.1
yast2-control-center-gnome-2.13.3-11.1
yast2-libyui-2.18.7-1.4
yast2-update-2.18.5-1.1
yast2-ntp-client-2.16.9-11.1
yast2-sysconfig-2.16.0-28.1
yast2-repair-2.16.12-4.1
yast2-inetd-2.16.0-27.1
yast2-storage-2.18.12-1.2
yast2-slp-2.16.0-25.1
yast2-hardware-detection-2.16.1-49.1 
yast2-x11-2.15.12-15.1
yast2-restore-2.16.2-26.1
yast2-mail-2.16.6-2.1
yast2-trans-en_US-2.16.9-1.1
yast2-http-server-2.16.9-10.1
yast2-qt-2.18.6-1.4
yast2-core-devel-2.18.11-1.1
yast2-firewall-2.16.2-25.1
yast2-bootloader-2.16.20-0.1
yast2-add-on-2.16.8-6.1
yast2-storage-lib-2.18.12-1.2
yast2-core-2.18.11-1.1
yast2-installation-2.18.15-1.2
yast2-theme-openSUSE-2.16.38-2.1
yast2-perl-bindings-2.16.7-14.1
yast2-nfs-client-2.16.1-26.1
yast2-tune-2.16.2-2.1
yast2-online-update-2.16.15-6.1
yast2-sudo-2.16.1-27.1
yast2-qt-pkg-2.18.9-1.1
yast2-pkg-bindings-2.18.5-1.1
yast2-devel-doc-2.18.16-1.1
yast2-transfer-2.16.1-76.1
yast2-kerberos-client-2.16.11-9.1
yast2-samba-client-2.16.9-3.1
yast2-registration-2.16.7-4.1
yast2-samba-server-2.16.3-15.1
yast2-printer-devel-doc-2.16.32-3.1
yast2-qt-graph-2.18.4-2.4
yast2-ncurses-pkg-2.18.4-1.2
yast2-dns-server-2.18.3-1.8
yast2-trans-stats-2.15.0-87.1
yast2-apparmor-2.16.4-4.1
yast2-ldap-2.16.0-52.1
yast2-ldap-client-2.16.16-6.1
yast2-packager-2.18.8-1.1
yast2-theme-openSUSE-Crystal-2.18.3-1.1
yast2-branding-openSUSE-2.18.0-1.1
yast2-runlevel-2.16.5-15.1
yast2-iscsi-client-2.16.14-6.1
yast2-control-center-2.16.2-11.1
yast2-nis-server-devel-doc-2.16.4-22.1
yast2-mouse-2.18.0-1.10
yast2-pam-2.16.2-17.1
yast2-support-2.16.1-6.1
yast2-printer-2.16.32-3.1
yast2-libyui-devel-2.18.7-1.4
yast2-2.18.16-1.1
yast2-xml-2.16.1-14.1
yast2-nis-client-2.16.3-6.1
yast2-online-update-frontend-2.16.15-6.1
yast2-control-center-qt-2.16.2-11.1
yast2-vm-2.16.5-7.1
yast2-metapackage-handler-0.8.5-16.1
yast2-network-devel-doc-2.16.48-3.1
yast2-nis-server-2.16.4-22.1
yast2-qt-devel-2.18.6-1.4
autoyast2-installation-2.18.5-1.2
yast2-country-data-2.16.26-6.1
yast2-sound-2.16.11-6.1
yast2-country-2.16.26-6.1
yast2-profile-manager-2.16.1-27.1
yast2-backup-2.16.6-0.1
yast2-devtools-2.16.8-19.1
yast2-ncurses-2.18.10-1.1
yast2-ycp-ui-bindings-devel-2.18.5-1.6


	I get the same results with either libqt4-4.5.1-47.1 or libqt4-4.5.1-2.1.
Comment 4 Dave Plater 2009-06-23 05:53:36 UTC
This bug does occur on my system.
The size column is fixed at 9 characters which would be fine if the suffix was KB, MB or GB but when this was changed to KiB, MiB and GiB an extra space is needed in the size cell to display values > 999 and < 1024.
It should be easy to fix for someone who knows their way around qt pkg.
Comment 5 Dave Plater 2009-06-23 06:12:27 UTC
Created attachment 299667 [details]
David Rankins qt software management ui with 8 character size column
Comment 6 Thomas Göttlicher 2009-06-23 12:48:55 UTC
*** Bug 508807 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Göttlicher 2009-06-25 07:50:53 UTC
duplicate of bug 441828

*** This bug has been marked as a duplicate of bug 441828 ***
Comment 8 Dave Plater 2009-07-12 06:10:20 UTC
I've reopened this bug as it addresses the size column only whereas bug 441828
 addresses the size of all the columns initially. I have altered yast2-qt-pkg's YQPkgList.cc initialization of the size column and will post a patch.
Meanwhile David Rankin can get the modified version, which I've used for a couple of days from :-
http://download.opensuse.org/repositories/home:/plater:/yast2qt/openSUSE_Factory/

A word of caution, don't use any of the other packages that I had to build in order to build yast2-qt-pkg.
Comment 9 Dave Plater 2009-07-13 12:05:58 UTC
Created attachment 304678 [details]
patch for YQPkgList.cc to fix the size column

My first patch I would like to know if it works.
Comment 10 Dave Plater 2009-07-18 09:14:16 UTC
Ignore Comment #9. As part of the process of becoming a more useful contributor I am using the process of submitting this patch to factory via build service as a learning exercise.
Comment 11 Dave Plater 2009-07-20 06:31:50 UTC
Made submit request to YaST:Head yast2-qt-pkg-2.18.9-fxszcol.patch
Comment 12 Dave Plater 2009-07-20 18:35:50 UTC
The patch in  bug 441828 works very well and I think that is the best end result.