Diffstat (limited to 'core/launcher/launcherview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/launcher/launcherview.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 72313e3..ff26133 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -278,2 +278,3 @@ LauncherIconView::~LauncherIconView() | |||
278 | { | 278 | { |
279 | odebug << "LauncherIconView::~LauncherIconView()" << oendl; | ||
279 | #if 0 // debuggery | 280 | #if 0 // debuggery |
@@ -431,10 +432,3 @@ void LauncherIconView::setEyePixmap(const QPixmap&aPixmap,const QString&aFile,in | |||
431 | if (s!=width) return; | 432 | if (s!=width) return; |
432 | LauncherItem*item = 0; | 433 | LauncherItem*item = findDocItem(aFile); |
433 | QMap<QString,LauncherItem*>::Iterator it; | ||
434 | if ( ( it = m_itemCache.find(aFile))!=m_itemCache.end()) { | ||
435 | item = it.data(); | ||
436 | m_itemCache.remove(it); | ||
437 | } else { | ||
438 | item = findDocItem(aFile); | ||
439 | } | ||
440 | if (!item||!item->isEyeImage()) return; | 434 | if (!item||!item->isEyeImage()) return; |
@@ -467,3 +461,2 @@ void LauncherIconView::requestEyePix(const LauncherItem*item) | |||
467 | int s = ( bigIcns ) ? AppLnk::bigIconSize() : AppLnk::smallIconSize(); | 461 | int s = ( bigIcns ) ? AppLnk::bigIconSize() : AppLnk::smallIconSize(); |
468 | m_itemCache[item->appLnk()->file()]=(LauncherItem*)item; | ||
469 | m_EyeCallBack->requestThumb(item->appLnk()->file(),s,s); | 462 | m_EyeCallBack->requestThumb(item->appLnk()->file(),s,s); |
@@ -478,3 +471,2 @@ void LauncherIconView::stopEyeTimer() | |||
478 | } | 471 | } |
479 | m_itemCache.clear(); | ||
480 | m_eyeTimer.stop(); | 472 | m_eyeTimer.stop(); |
@@ -706,3 +698,2 @@ void LauncherView::setToolsEnabled(bool y) | |||
706 | tools = new QHBox(this); | 698 | tools = new QHBox(this); |
707 | |||
708 | // Type filter | 699 | // Type filter |
@@ -712,3 +703,2 @@ void LauncherView::setToolsEnabled(bool y) | |||
712 | typemb->setSizePolicy(p); | 703 | typemb->setSizePolicy(p); |
713 | |||
714 | // Category filter | 704 | // Category filter |
@@ -716,3 +706,2 @@ void LauncherView::setToolsEnabled(bool y) | |||
716 | tools->show(); | 706 | tools->show(); |
717 | |||
718 | } else { | 707 | } else { |
@@ -728,4 +717,5 @@ void LauncherView::updateTools() | |||
728 | this, SLOT(showType(int)) ); | 717 | this, SLOT(showType(int)) ); |
729 | if ( catmb ) disconnect( catmb, SIGNAL(signalSelected(int)), | 718 | if ( catmb ) { |
730 | this, SLOT(showCategory(int)) ); | 719 | disconnect( catmb, SIGNAL(signalSelected(int)),this,SLOT(showCategory(int))); |
720 | } | ||
731 | 721 | ||
@@ -763,4 +753,5 @@ void LauncherView::updateTools() | |||
763 | } | 753 | } |
764 | if ( prev.isNull() ) | 754 | if ( prev.isNull() ) { |
765 | typemb->setCurrentItem(typemb->count()-1); | 755 | typemb->setCurrentItem(typemb->count()-1); |
756 | } | ||
766 | 757 | ||
@@ -810,2 +801,3 @@ void LauncherView::setViewMode( ViewMode m ) | |||
810 | { | 801 | { |
802 | odebug << "LauncherView::setViewMode( ViewMode m )" << oendl; | ||
811 | if ( vmode != m ) { | 803 | if ( vmode != m ) { |
@@ -1048,2 +1040,3 @@ void LauncherView::removeAllItems() | |||
1048 | { | 1040 | { |
1041 | odebug << "LauncherView::removeAllItems()" << oendl; | ||
1049 | icons->clear(); | 1042 | icons->clear(); |
@@ -1170,3 +1163,3 @@ void LauncherThumbReceiver::requestThumb(const QString&file,int width,int height | |||
1170 | m_inThumbNail.append(rItem); | 1163 | m_inThumbNail.append(rItem); |
1171 | QTimer::singleShot(0, this, SLOT(sendRequest())); | 1164 | QTimer::singleShot(2, this, SLOT(sendRequest())); |
1172 | } | 1165 | } |