changeset 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 685e31447355
children a4e88449268b
files sv/sound-access.qrc widgets/QueryResultsWidget.cpp
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sv/sound-access.qrc	Thu Nov 15 14:41:11 2007 +0000
+++ b/sv/sound-access.qrc	Thu Nov 15 15:03:58 2007 +0000
@@ -79,6 +79,7 @@
 	  <file>icons/similar.png</file>
     <file>icons/addToLayer.png</file>
     <file>icons/icon_pdf.png</file>
+    <file>icons/videoIcon.png</file>
   
     <file>samples/bass.wav</file>
     <file>samples/beep.wav</file>
--- 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;
 	}