PluginManager/PluginInstallDialog.py

changeset 882
34b86be88bf0
parent 880
52ed20236a1c
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
881:ff23d907f87b 882:34b86be88bf0
14 import compileall 14 import compileall
15 import urllib.parse 15 import urllib.parse
16 16
17 from PyQt4.QtGui import * 17 from PyQt4.QtGui import *
18 from PyQt4.QtCore import * 18 from PyQt4.QtCore import *
19
20 from E5Gui import E5FileDialog
19 21
20 from .PluginManager import PluginManager 22 from .PluginManager import PluginManager
21 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog 23 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog
22 24
23 import Utilities 25 import Utilities
140 def on_addArchivesButton_clicked(self): 142 def on_addArchivesButton_clicked(self):
141 """ 143 """
142 Private slot to select plugin ZIP-archives via a file selection dialog. 144 Private slot to select plugin ZIP-archives via a file selection dialog.
143 """ 145 """
144 dn = Preferences.getPluginManager("DownloadPath") 146 dn = Preferences.getPluginManager("DownloadPath")
145 archives = QFileDialog.getOpenFileNames( 147 archives = E5FileDialog.getOpenFileNames(
146 self, 148 self,
147 self.trUtf8("Select plugin ZIP-archives"), 149 self.trUtf8("Select plugin ZIP-archives"),
148 dn, 150 dn,
149 self.trUtf8("Plugin archive (*.zip)"), 151 self.trUtf8("Plugin archive (*.zip)"))
150 QFileDialog.DontUseNativeDialog)
151 152
152 if archives: 153 if archives:
153 matchflags = Qt.MatchFixedString 154 matchflags = Qt.MatchFixedString
154 if not Utilities.isWindowsPlatform(): 155 if not Utilities.isWindowsPlatform():
155 matchflags |= Qt.MatchCaseSensitive 156 matchflags |= Qt.MatchCaseSensitive

eric ide

mercurial