|
|
@ -62,6 +62,7 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop): |
|
|
|
self.start_timestamp = None |
|
|
|
self.end_timestamp = None |
|
|
|
self.years = [] |
|
|
|
self.create_toolbar_buttons() |
|
|
|
|
|
|
|
def format_date(self, d): |
|
|
|
return str(datetime.date(d.year, d.month, d.day)) if d else _('None') |
|
|
@ -115,6 +116,8 @@ class HistoryList(MyTreeWidget, AcceptFileDragDrop): |
|
|
|
self.end_button.setEnabled(False) |
|
|
|
self.period_combo.addItems([_('All'), _('Custom')]) |
|
|
|
self.period_combo.activated.connect(self.on_combo) |
|
|
|
|
|
|
|
def get_toolbar_buttons(self): |
|
|
|
return self.period_combo, self.start_button, self.end_button |
|
|
|
|
|
|
|
def on_hide_toolbar(self): |
|
|
|