Author: coolo Date: Wed Apr 16 14:53:46 2008 New Revision: 46729 URL: http://svn.opensuse.org/viewcvs/yast?rev=46729&view=rev Log: as discussed with duncan: move the used column into a tooltip - it's the least interesting Modified: trunk/qt-pkg/src/YQPkgDiskUsageList.cc trunk/qt/src/QY2DiskUsageList.cc Modified: trunk/qt-pkg/src/YQPkgDiskUsageList.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgDiskUsageList.cc?rev=46729&r1=46728&r2=46729&view=diff ============================================================================== --- trunk/qt-pkg/src/YQPkgDiskUsageList.cc (original) +++ trunk/qt-pkg/src/YQPkgDiskUsageList.cc Wed Apr 16 14:53:46 2008 @@ -89,7 +89,7 @@ resizeColumnToContents( nameCol() ); resizeColumnToContents( totalSizeCol() ); - resizeColumnToContents( usedSizeCol() ); + //resizeColumnToContents( usedSizeCol() ); resizeColumnToContents( freeSizeCol() ); sortByColumn( percentageBarCol(), Qt::DescendingOrder ); Modified: trunk/qt/src/QY2DiskUsageList.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/QY2DiskUsageList.cc?rev=46729&r1=46728&r2=46729&view=diff ============================================================================== --- trunk/qt/src/QY2DiskUsageList.cc (original) +++ trunk/qt/src/QY2DiskUsageList.cc Wed Apr 16 14:53:46 2008 @@ -161,7 +161,7 @@ // Translators: Please keep this short! columnLabels << _("Disk Usage"); _percentageBarCol = numCol++; setItemDelegateForColumn( _percentageBarCol, new QY2DiskUsagePercentageItem( this ) ); - columnLabels << _("Used"); _usedSizeCol = numCol++; + //columnLabels << _("Used"); _usedSizeCol = numCol++; columnLabels << _( "Free"); _freeSizeCol = numCol++; columnLabels << _("Total"); _totalSizeCol = numCol++; #if 0 @@ -229,6 +229,9 @@ if ( nameCol() >= 0 ) setText( nameCol(), name() ); if ( deviceNameCol() >= 0 ) setText( deviceNameCol(), deviceName() ); } + + if ( usedSizeCol() < 0 ) + setToolTip( freeSizeCol(), _( "Used %1" ).arg( usedSize().form( 0, 1, true ).c_str() ) ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org