Add future history tab.

This commit is contained in:
Sergio Martínez Portela 2021-11-03 00:55:06 +01:00
parent 47a8fcd67d
commit cbd99f25ac

View File

@ -88,6 +88,8 @@ class Dialog(QDialog):
self.tabBar.addTab("Agenda") self.tabBar.addTab("Agenda")
self.tabBar.addTab("Notes") self.tabBar.addTab("Notes")
self.tabBar.addTab("Tasks") self.tabBar.addTab("Tasks")
self.tabBar.addTab("History")
self.tabBar.currentChanged.connect(self.update_tab) self.tabBar.currentChanged.connect(self.update_tab)
layout.addWidget(self.tabBar) layout.addWidget(self.tabBar)
@ -111,6 +113,8 @@ class Dialog(QDialog):
self.loadNotes() self.loadNotes()
elif tabIndex == 2: elif tabIndex == 2:
self.loadTasks() self.loadTasks()
elif tabIndex == 3:
self.loadHistory()
def startLoad(self): def startLoad(self):
self.edit.setDisabled(True) self.edit.setDisabled(True)
@ -223,6 +227,9 @@ class Dialog(QDialog):
def loadTasks(self): def loadTasks(self):
logging.warning("loadTasks not yet implemented") logging.warning("loadTasks not yet implemented")
def loadHistory(self):
logging.warning("loadHistory not yet implemented")
# Create the Qt Application # Create the Qt Application
if __name__ == "__main__": if __name__ == "__main__":