Rename
This commit is contained in:
parent
56285caeab
commit
0aa38726f0
@ -3,7 +3,7 @@ from PySide2 import QtGui, QtWidgets
|
|||||||
from task_completer import TaskCompleter
|
from task_completer import TaskCompleter
|
||||||
|
|
||||||
|
|
||||||
class NewTask(QtWidgets.QDialog):
|
class ImportTask(QtWidgets.QDialog):
|
||||||
def __init__(self, parent, *args, **kwargs):
|
def __init__(self, parent, *args, **kwargs):
|
||||||
super().__init__(parent, *args, **kwargs)
|
super().__init__(parent, *args, **kwargs)
|
||||||
self.setWindowTitle("New Tasks")
|
self.setWindowTitle("New Tasks")
|
14
main.py
14
main.py
@ -9,7 +9,7 @@ from PySide2.QtWidgets import QMessageBox
|
|||||||
|
|
||||||
from data import Tasks, Log, Data
|
from data import Tasks, Log, Data
|
||||||
from exceptions import FimeFrackingException
|
from exceptions import FimeFrackingException
|
||||||
from new_task import NewTask
|
from import_task import ImportTask
|
||||||
from task_edit import TaskEdit
|
from task_edit import TaskEdit
|
||||||
from report import Report
|
from report import Report
|
||||||
from util import get_screen_height
|
from util import get_screen_height
|
||||||
@ -28,8 +28,8 @@ class App:
|
|||||||
|
|
||||||
self.menu = QtWidgets.QMenu()
|
self.menu = QtWidgets.QMenu()
|
||||||
|
|
||||||
self.new_task = NewTask(None)
|
self.import_task = ImportTask(None)
|
||||||
self.new_task.accepted.connect(self.new_task_imported)
|
self.import_task.accepted.connect(self.new_task_imported)
|
||||||
|
|
||||||
self.taskEdit = TaskEdit(None)
|
self.taskEdit = TaskEdit(None)
|
||||||
self.taskEdit.accepted.connect(self.tasks_edited)
|
self.taskEdit.accepted.connect(self.tasks_edited)
|
||||||
@ -46,8 +46,8 @@ class App:
|
|||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
def new_task_imported(self):
|
def new_task_imported(self):
|
||||||
if self.new_task.task_text:
|
if self.import_task.task_text:
|
||||||
self.tasks.add_jira_task(self.new_task.task_text)
|
self.tasks.add_jira_task(self.import_task.task_text)
|
||||||
self.update_tray_menu()
|
self.update_tray_menu()
|
||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
@ -134,8 +134,8 @@ class App:
|
|||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
def new_task_slot(self):
|
def new_task_slot(self):
|
||||||
self.new_task.reset_task_text()
|
self.import_task.reset_task_text()
|
||||||
self.new_task.show()
|
self.import_task.show()
|
||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
def edit_tasks(self):
|
def edit_tasks(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user