Mercurial > hg > easaier-soundaccess
diff widgets/QueryResultsWidget.cpp @ 160:925b77f25cd9
add video icon for Django file (hard coded for demo, should come from the rdf database)
author | lbajardsilogic |
---|---|
date | Thu, 15 Nov 2007 15:03:58 +0000 |
parents | f2d2c1084e7c |
children | 3045ced14a59 |
line wrap: on
line diff
--- a/widgets/QueryResultsWidget.cpp Thu Nov 15 14:41:11 2007 +0000 +++ b/widgets/QueryResultsWidget.cpp Thu Nov 15 15:03:58 2007 +0000 @@ -116,6 +116,7 @@ m_currentRow = 0; rank = 1; addTop(); + int type = 0; std::vector<std::vector<Info>*>::iterator iterOnResults; int size = m_allresults.size(); @@ -150,7 +151,9 @@ } } } - addResultWidget(author,title,uri,0); + if (author == "Django") + type = 2; + addResultWidget(author,title,uri,type); m_currentRow=m_currentRow+3; rank++; @@ -179,7 +182,9 @@ case 1: pixmapName.append(":icons/speechIcon.png"); break; - + case 2: + pixmapName.append(":icons/videoIcon.png"); + break; default: break; }