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

List:       kde-commits
Subject:    KDE/kdegraphics/gwenview/app
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2010-11-13 23:58:15
Message-ID: 20101113235815.183EEAC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1196734 by gateau:

Cleanup

 M  +7 -2      semanticinfocontextmanageritem.cpp  


--- trunk/KDE/kdegraphics/gwenview/app/semanticinfocontextmanageritem.cpp #1196733:1196734
@@ -104,8 +104,11 @@
 		hide();
 	}
 
-	void show(int rating) {
+	void setRating(int rating) {
 		mRatingWidget->setRating(rating);
+	}
+
+	void show() {
 		HudWidget::show();
 		raise();
 		mHideTimer->start();
@@ -260,6 +263,7 @@
 	update();
 }
 
+
 void SemanticInfoContextManagerItem::update() {
 	KFileItemList itemList = contextManager()->selection();
 
@@ -339,7 +343,8 @@
 
 	// Show rating indicator in view mode, and only if sidebar is not visible
 	if (d->mRatingIndicator->parentWidget()->isVisible() && !d->mRatingWidget->isVisible()) {
-		d->mRatingIndicator->show(rating);
+		d->mRatingIndicator->setRating(rating);
+		d->mRatingIndicator->show();
 	}
 
 	SortedDirModel* dirModel = contextManager()->dirModel();
[prev in list] [next in list] [prev in thread] [next in thread] 

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