9 |
9 |
10 from __future__ import unicode_literals |
10 from __future__ import unicode_literals |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel |
12 from PyQt5.QtCore import pyqtSlot, Qt, QItemSelectionModel |
13 from PyQt5.QtGui import QBrush, QColor, QTextCursor |
13 from PyQt5.QtGui import QBrush, QColor, QTextCursor |
14 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QListWidgetItem, \ |
14 from PyQt5.QtWidgets import ( |
15 QAbstractButton |
15 QDialog, QDialogButtonBox, QListWidgetItem, QAbstractButton |
|
16 ) |
16 |
17 |
17 from E5Gui.E5Application import e5App |
18 from E5Gui.E5Application import e5App |
18 from E5Gui import E5MessageBox |
19 from E5Gui import E5MessageBox |
19 |
20 |
20 from .Ui_HistoryDialog import Ui_HistoryDialog |
21 from .Ui_HistoryDialog import Ui_HistoryDialog |
292 self.redoChangesList.setCurrentItem( |
293 self.redoChangesList.setCurrentItem( |
293 self.redoChangesList.item(0), |
294 self.redoChangesList.item(0), |
294 QItemSelectionModel.Select) |
295 QItemSelectionModel.Select) |
295 |
296 |
296 self.__refreshButton.setEnabled(True) |
297 self.__refreshButton.setEnabled(True) |
297 if self.undoChangesList.count() > 0 or \ |
298 if ( |
298 self.redoChangesList.count() > 0: |
299 self.undoChangesList.count() > 0 or |
|
300 self.redoChangesList.count() > 0 |
|
301 ): |
299 self.__clearButton.setEnabled(True) |
302 self.__clearButton.setEnabled(True) |
300 |
303 |
301 elif subcommand == "ChangeDescription": |
304 elif subcommand == "ChangeDescription": |
302 for line in data["Description"].splitlines(True): |
305 for line in data["Description"].splitlines(True): |
303 try: |
306 try: |