From: <ve...@us...> - 2008-03-17 20:54:35
|
Revision: 798 http://luma.svn.sourceforge.net/luma/?rev=798&view=rev Author: vegarwe Date: 2008-03-17 13:54:29 -0700 (Mon, 17 Mar 2008) Log Message: ----------- Qt4 migration: * s/clicked(QListBoxItem*)/itemClicked(QListWidgetItem*)/ * s/QTaskStack.raiseWidget/QStackedWidget.setCurrentIndex/ * Add FIXME's to be resolved later Modified Paths: -------------- trunk/luma/lib/luma/base/gui/MainWin.py Modified: trunk/luma/lib/luma/base/gui/MainWin.py =================================================================== --- trunk/luma/lib/luma/base/gui/MainWin.py 2008-03-17 19:47:15 UTC (rev 797) +++ trunk/luma/lib/luma/base/gui/MainWin.py 2008-03-17 20:54:29 UTC (rev 798) @@ -84,7 +84,7 @@ font = self.pluginBox.font() font.setPointSize(font.pointSize() + 4) self.pluginBox.setFont(font) - self.connect(self.pluginBox, QtCore.SIGNAL("clicked(QListBoxItem*)"), self.pluginClicked) + self.connect(self.pluginBox, QtCore.SIGNAL("itemClicked(QListWidgetItem*)"), self.pluginClicked) self.pluginBoxId = self.taskStack.addWidget(self.pluginBox) @@ -475,15 +475,16 @@ if item == None: return - self.taskStack.raiseWidget(item.widgetID) + self.taskStack.setCurrentIndex(item.widgetID) self.pluginLabel.setText(unicode(item.text()) + " ") - toolBars = self.toolBars(Qt.DockTop) + # FIXME: Qt4 migration: delete plugin spesific toolbars + #toolBars = self.toolBars(Qt.DockTop) + # + #for x in toolBars: + # if not (str(x.name()) == "PLUGINTOOLBAR"): + # x.deleteLater() - for x in toolBars: - if not (str(x.name()) == "PLUGINTOOLBAR"): - x.deleteLater() - #build the toolbar for the selected plugin try: item.widgetRef.buildToolBar(self) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |