TheIndependentAquarius
15th February 2012, 06:34
The main window contains a:
TODO list (text box), time allotted (list box), start time (text box).
Count down timer (timer), start button (button).
I already have a class for the timer which contains few slots too.
Remaining widgets have their objects declared in the main() currently.
Now, I need to get the clicked item from the list and supply it to the timer.
The way to do it is to create signal-slots.
How to decide whether to make a separate class for widgets of a window or club them all together?
Any design patterns here?
Does MVP has anything to do with this "current case"?
TODO list (text box), time allotted (list box), start time (text box).
Count down timer (timer), start button (button).
I already have a class for the timer which contains few slots too.
Remaining widgets have their objects declared in the main() currently.
Now, I need to get the clicked item from the list and supply it to the timer.
The way to do it is to create signal-slots.
How to decide whether to make a separate class for widgets of a window or club them all together?
Any design patterns here?
Does MVP has anything to do with this "current case"?