Tasks/TaskViewer.py

changeset 536
6d8d39753c82
parent 501
5c615a85241a
child 538
7f1a56e80124
equal deleted inserted replaced
535:4b00d7336e19 536:6d8d39753c82
16 16
17 from PyQt4.QtCore import * 17 from PyQt4.QtCore import *
18 from PyQt4.QtGui import * 18 from PyQt4.QtGui import *
19 19
20 from E5Gui.E5Application import e5App 20 from E5Gui.E5Application import e5App
21 from E5Gui import E5MessageBox
21 22
22 from .TaskPropertiesDialog import TaskPropertiesDialog 23 from .TaskPropertiesDialog import TaskPropertiesDialog
23 from .TaskFilterConfigDialog import TaskFilterConfigDialog 24 from .TaskFilterConfigDialog import TaskFilterConfigDialog
24 25
25 import UI.PixmapCache 26 import UI.PixmapCache
709 Private slot to handle the "Filtered display" context menu entry. 710 Private slot to handle the "Filtered display" context menu entry.
710 711
711 @param on flag indicating the filter state (boolean) 712 @param on flag indicating the filter state (boolean)
712 """ 713 """
713 if on and not self.taskFilter.hasActiveFilter(): 714 if on and not self.taskFilter.hasActiveFilter():
714 res = QMessageBox.information(None, 715 res = QMessageBox.question(self,
715 self.trUtf8("Activate task filter"), 716 self.trUtf8("Activate task filter"),
716 self.trUtf8("""The task filter doesn't have any active filters.""" 717 self.trUtf8("""The task filter doesn't have any active filters."""
717 """ Do you want to configure the filter settings?"""), 718 """ Do you want to configure the filter settings?"""),
718 QMessageBox.StandardButtons(\ 719 QMessageBox.StandardButtons(\
719 QMessageBox.No | \ 720 QMessageBox.No | \

eric ide

mercurial