Plugins/VcsPlugins/vcsMercurial/HisteditExtension/HgHisteditPlanEditor.py

changeset 5291
e93d14b48c34
parent 5283
06423d65a2b8
child 5389
9b1c800daff3
equal deleted inserted replaced
5290:174dae2b91c3 5291:e93d14b48c34
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to edit the history modification plan. 7 Module implementing a dialog to edit the history modification plan.
8 """ 8 """
9
10 from __future__ import unicode_literals
9 11
10 from PyQt5.QtCore import pyqtSlot, QCoreApplication 12 from PyQt5.QtCore import pyqtSlot, QCoreApplication
11 from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QComboBox 13 from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QComboBox
12 14
13 from E5Gui import E5MessageBox 15 from E5Gui import E5MessageBox
138 item.setSizeHint(0, actionCombo.sizeHint()) 140 item.setSizeHint(0, actionCombo.sizeHint())
139 141
140 def __createPlanItem(self, text): 142 def __createPlanItem(self, text):
141 """ 143 """
142 Private method to create an edit plan tree item. 144 Private method to create an edit plan tree item.
145
146 @param text line of text to be parsed
147 @type str
143 """ 148 """
144 if not text.lstrip(): 149 if not text.lstrip():
145 return 150 return
146 151
147 parts = text.split(" ", 3) 152 parts = text.split(" ", 3)

eric ide

mercurial