[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-1/gwenview/src
From:       Aurélien Gâteau <aurelien.gateau () free ! fr>
Date:       2004-05-04 13:13:04
Message-ID: 20040504131304.2617298F2 () office ! kde ! org
[Download RAW message or body]

CVS commit by gateau: 

Getting the code ready for the time when it will be possible to put item texts
on the right of the icons.


  M +7 -3      gvfilethumbnailviewitem.cpp   1.9


--- kdeextragear-1/gwenview/src/gvfilethumbnailviewitem.cpp  #1.8:1.9
@@ -65,6 +65,6 @@ void GVFileThumbnailViewItem::calcRect(c
         QRect itemTextRect = QRect(0,0,0,0);
         QRect itemRect = rect();
-        int availableTextWidth=view->thumbnailSize().pixelSize()
-                - (view->itemTextPos()==QIconView::Bottom ? 0 : pixmapRect().width() \
); +        int availableTextWidth=rect().width()
+                - (view->itemTextPos()==QIconView::Bottom ? 0 : \
view->thumbnailSize().pixelSize() );  
 // Init itemIconRect 
@@ -199,5 +199,9 @@ void GVFileThumbnailViewItem::paintItem(
                 QRect outerRect=pRect | tRect;
                 p->drawRect(outerRect);
+                if (view->itemTextPos()==QIconView::Bottom) {
                 p->fillRect( \
outerRect.x(),tRect.y(),outerRect.width(),tRect.height(), cg.highlight() ); +         \
} else { +                        p->fillRect( \
tRect.x(),outerRect.y(),tRect.width(),outerRect.height(), cg.highlight() ); +         \
}  
                 p->setPen( QPen( cg.highlightedText() ) );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic