Revision: 945
Author: mdevaev
Date: Sat Feb 20 16:34:51 2010
Log: Рефакторинг
http://code.google.com/p/lightlang/source/detail?r=945
Modified:
/trunk/lightlang/apps/xsl/src/pyqt4/TranslateSitesMenu.py
=======================================
--- /trunk/lightlang/apps/xsl/src/pyqt4/TranslateSitesMenu.py Tue Jan 19
08:56:17 2010
+++ /trunk/lightlang/apps/xsl/src/pyqt4/TranslateSitesMenu.py Sat Feb 20
16:34:51 2010
@@ -113,12 +113,11 @@
action = self.addAction(Qt.QIcon(site_icon_path), site_title)
action.setStatusTip(site_description)
- self.actions_data_list.append(Qt.QString(site_url))
+ self.actions_data_list.append(Qt.QUrl(site_url))
index = len(self.actions_data_list) - 1
action.setData(Qt.QVariant(index))
def openSite(self, action) :
index = action.data().toInt()[0]
- site_url = self.actions_data_list[index]
- Qt.QDesktopServices.openUrl(Qt.QUrl(site_url))
-
+ Qt.QDesktopServices.openUrl(self.actions_data_list[index])
+