PluginManager/PluginRepositoryDialog.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
diff -r 52e8c820d0dd -r c679fb30c8f3 PluginManager/PluginRepositoryDialog.py
--- a/PluginManager/PluginRepositoryDialog.py	Mon Dec 28 18:31:37 2009 +0000
+++ b/PluginManager/PluginRepositoryDialog.py	Wed Dec 30 15:40:33 2009 +0000
@@ -129,10 +129,10 @@
         if self.__repositoryMissing or current is None:
             return
         
-        self.urlEdit.setText(current.data(0, urlRole).toString())
+        self.urlEdit.setText(current.data(0, urlRole))
         self.descriptionEdit.setPlainText(
-            self.__formatDescription(current.data(0, descrRole).toStringList()))
-        self.authorEdit.setText(current.data(0, authorRole).toString())
+            self.__formatDescription(current.data(0, descrRole)))
+        self.authorEdit.setText(current.data(0, authorRole))
     
     def __selectedItems(self):
         """
@@ -206,10 +206,10 @@
         self.__installButton.setEnabled(False)
         for itm in self.repositoryList.selectedItems():
             if itm not in [self.__stableItem, self.__unstableItem, self.__unknownItem]:
-                url = itm.data(0, urlRole).toString()
+                url = itm.data(0, urlRole)
                 filename = os.path.join(
                     Preferences.getPluginManager("DownloadPath"),
-                    itm.data(0, filenameRole).toString())
+                    itm.data(0, filenameRole))
                 self.__pluginsToDownload.append((url, filename))
         self.__downloadPlugin()
     
@@ -473,10 +473,10 @@
             parent = self.__unknownItem
         itm = QTreeWidgetItem(parent, [name, version, short])
         
-        itm.setData(0, urlRole, QVariant(url))
-        itm.setData(0, filenameRole, QVariant(filename))
-        itm.setData(0, authorRole, QVariant(author))
-        itm.setData(0, descrRole, QVariant(description))
+        itm.setData(0, urlRole, url)
+        itm.setData(0, filenameRole, filename)
+        itm.setData(0, authorRole, author)
+        itm.setData(0, descrRole, description)
         
         if self.__isUpToDate(filename, version):
             itm.setIcon(1, UI.PixmapCache.getIcon("empty.png"))

eric ide

mercurial