69 |
69 |
70 def currentPlotChanged(self, index, old_index=None): |
70 def currentPlotChanged(self, index, old_index=None): |
71 if index.isValid(): |
71 if index.isValid(): |
72 value = unicode(self.plotsView.model().data(index, Qt.DisplayRole).toString()) |
72 value = unicode(self.plotsView.model().data(index, Qt.DisplayRole).toString()) |
73 |
73 |
74 #self.plotterWidget = QHPGLPlotterWidget(self) |
|
75 #self.setCentralWidget(self.plotterWidget) |
|
76 self.plotterWidget.clear() |
74 self.plotterWidget.clear() |
77 self.plotterWidget.parse(self._plots[value]) |
75 self.plotterWidget.parse(self._plots[value]) |
78 |
76 |
79 def preferencesTriggered(self, checked=False): |
77 def preferencesTriggered(self, checked=False): |
80 PreferencesEditor(self._prefs, self).exec_() |
78 PreferencesEditor(self._prefs, self).exec_() |