[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/libkonq
From: Benoit Walter <b.walter () free ! fr>
Date: 2004-04-15 21:22:05
Message-ID: 20040415212205.7B07D99ED () office ! kde ! org
[Download RAW message or body]
CVS commit by bwalter:
Slightly improved the positionning of icon view items
M +3 -3 konq_iconviewwidget.cc 1.282
--- kdebase/libkonq/konq_iconviewwidget.cc #1.281:1.282
@@ -1663,6 +1663,6 @@ void KonqIconViewWidget::lineupIcons()
previewSize + spacing() );
int textHeight = QMIN( iconTextHeight(), 2 ) * fontMetrics().height();
- int dy = textHeight + QMAX( iconSize + 2 + d->desktopGridSpacing.y(),
- previewSize );
+ int dy = textHeight + 2 +
+ QMAX( iconSize + d->desktopGridSpacing.y(), previewSize );
// Icon Area
@@ -1839,5 +1839,5 @@ void KonqIconViewWidget::lineupIcons()
QIconViewItem* item = bin->first();
int newX = x1 + i*dx + ( dx - item->width() ) / 2;
- int newY = y1 + j*dy + dy - ( item->textRect().y() + textHeight + 2 );
+ int newY = y1 + j*dy + dy - ( item->pixmapRect().bottom() + textHeight + 2 );
if ( item->x() != newX || item->y() != newY ) {
QRect oldRect = item->rect();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic