From 0c8751587f38c9b3976233bdebce34dbd548085f Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Date: Mon, 23 May 2011 10:49:24 +0200
Subject: [PATCH] add logo in mainwindow

---
 sface/mainwindow.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sface/mainwindow.py b/sface/mainwindow.py
index 6a0175e..2e9664a 100644
--- a/sface/mainwindow.py
+++ b/sface/mainwindow.py
@@ -1,10 +1,10 @@
-
 import os
 import sys
 import time
 
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
+from PyQt4.QtOpenGL import *
 
 from sface.config import config
 from sface.logwindow import LogWindow
@@ -18,6 +18,11 @@ class Nav(QWidget):
         QWidget.__init__(self, parent)
         
         self.title = QLabel("", self)
+        scene=QGraphicsScene()
+        scene.addPixmap(QPixmap('/Users/parmentelat/git/sface/macos/graphic-sfa64.png'))
+        self.logoview=QGraphicsView()
+        self.logoview.setViewport(QGLWidget())
+        self.logoview.setScene(scene)
         self.main = QLabel("", self)
         self.main.setAlignment(Qt.AlignRight)
 
@@ -28,6 +33,7 @@ class Nav(QWidget):
         self.help.setAlignment(Qt.AlignRight)
 
         hlayout = QHBoxLayout()
+        hlayout.addWidget(self.logoview)
         hlayout.addWidget(self.title)
         hlayout.addStretch()
         hlayout.addWidget(QLabel("Go to: ", self))
-- 
2.47.0