git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
now data() yelds a subclass of QVariant, and not a QVariant-embedded dict (goal was...
[sface.git]
/
sface
/
mainwindow.py
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
fa19a43
..
b064769
100644
(file)
--- a/
sface/mainwindow.py
+++ b/
sface/mainwindow.py
@@
-142,6
+142,9
@@
class MainWindow(QWidget):
self.setStatus("Already showing %s" % curr_screen.getTitleText(), timeout=1000)
return
self.setStatus("Already showing %s" % curr_screen.getTitleText(), timeout=1000)
return
+ # This is an optimization to have a smoother animation. We
+ # render the widget into a pixmap and animate that instead of
+ # moving the whole widget around.
pixmap = QPixmap(self.screens.size())
curr_screen.render(pixmap)
self.screens.setCurrentWidget(self.pix)
pixmap = QPixmap(self.screens.size())
curr_screen.render(pixmap)
self.screens.setCurrentWidget(self.pix)
@@
-172,5
+175,6
@@
class MainWindow(QWidget):
self.status.set(msg, timeout)
def nodeSelectionChanged(self, hostname):
self.status.set(msg, timeout)
def nodeSelectionChanged(self, hostname):
+ print "nodeSelectionChanged"
if self.rspecWindow.isVisible():
self.rspecWindow.showNode(hostname)
if self.rspecWindow.isVisible():
self.rspecWindow.showNode(hostname)