summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/iconview.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.cpp b/noncore/graphics/opie-eye/gui/iconview.cpp
index 729b64f..aeaa3c6 100644
--- a/noncore/graphics/opie-eye/gui/iconview.cpp
+++ b/noncore/graphics/opie-eye/gui/iconview.cpp
@@ -40,2 +40,3 @@ namespace {
40 void setText( const QString& ); 40 void setText( const QString& );
41 void reCalc();
41 private: 42 private:
@@ -88,2 +89,7 @@ namespace {
88 } 89 }
90
91 inline void IconViewItem::reCalc()
92 {
93 calcRect();
94 }
89} 95}
@@ -113,3 +119,3 @@ PIconView::PIconView( QWidget* wid, Config* cfg )
113 m_view->setItemTextPos( QIconView::Right ); 119 m_view->setItemTextPos( QIconView::Right );
114 120 m_view->setResizeMode(QIconView::Adjust);
115 121
@@ -260,3 +266,5 @@ void PIconView::slotThumbInfo( const QString& _path, const QString& str ) {
260 IconViewItem* item = g_stringInf[_path]; 266 IconViewItem* item = g_stringInf[_path];
261 item->setText( str ); 267 /* if set the view shows nonsens!
268 I dont know how to fix the format of displayed text :(*/
269 //item->setText( str );
262 item->repaint(); 270 item->repaint();
@@ -268,3 +276,10 @@ void PIconView::slotThumbNail(const QString& _path, const QPixmap &pix) {
268 IconViewItem* item = g_stringPix[_path]; 276 IconViewItem* item = g_stringPix[_path];
269 PPixmapCache::self()->insertImage( _path, pix, 64, 64 ); 277
278 if (pix.width()>0) {
279 PPixmapCache::self()->insertImage( _path, pix, 64, 64 );
280 /* required for a recalculated rectangle. otherwise the view show nonsense! */
281 item->reCalc();
282 } else {
283 PPixmapCache::self()->insertImage(_path,Resource::loadPixmap( "UnknownDocument" ),64,64 );
284 }
270 item->repaint(); 285 item->repaint();