Helpviewer/QtHelpDocumentationDialog.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
9 9
10 from PyQt4.QtGui import * 10 from PyQt4.QtGui import *
11 from PyQt4.QtCore import * 11 from PyQt4.QtCore import *
12 from PyQt4.QtHelp import QHelpEngineCore 12 from PyQt4.QtHelp import QHelpEngineCore
13 13
14 from Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog 14 from .Ui_QtHelpDocumentationDialog import Ui_QtHelpDocumentationDialog
15 15
16 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog): 16 class QtHelpDocumentationDialog(QDialog, Ui_QtHelpDocumentationDialog):
17 """ 17 """
18 Class implementing a dialog to manage the QtHelp documentation database. 18 Class implementing a dialog to manage the QtHelp documentation database.
19 """ 19 """
102 openedDocs = self.__mw.getSourceFileList() 102 openedDocs = self.__mw.getSourceFileList()
103 103
104 items = self.documentsList.selectedItems() 104 items = self.documentsList.selectedItems()
105 for item in items: 105 for item in items:
106 ns = item.text() 106 ns = item.text()
107 if ns in openedDocs.values(): 107 if ns in list(openedDocs.values()):
108 res = QMessageBox.information(self, 108 res = QMessageBox.information(self,
109 self.trUtf8("Remove Documentation"), 109 self.trUtf8("Remove Documentation"),
110 self.trUtf8("""Some documents currently opened reference the """ 110 self.trUtf8("""Some documents currently opened reference the """
111 """documentation you are attempting to remove. """ 111 """documentation you are attempting to remove. """
112 """Removing the documentation will close those """ 112 """Removing the documentation will close those """

eric ide

mercurial