Learn Environment
|
Represents a UI item for a subtask. More...
#include <subtask_item.hpp>
Signals | |
void | subtaskStartStopRequested (const Subtask &subtask) |
Signal emitted when a start/stop request is made for the subtask. More... | |
Public Member Functions | |
SubtaskItem (QWidget *parent, Subtask *subtask) | |
Constructs a SubtaskItem object. More... | |
void | updateUI (bool constructorCall=false) |
Updates the UI elements based on the subtask's status. More... | |
void | setTaskManager (TaskManager *manager) |
Sets the TaskManager object. More... | |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *event) override |
Represents a UI item for a subtask.
The SubtaskItem class is responsible for displaying and managing the UI elements related to a subtask. It provides functionalities to update the UI based on the subtask's status and to handle user interactions. This is a QWidget designed to function as a List Item.
Constructs a SubtaskItem object.
parent | Pointer to the parent widget. |
subtask | Pointer to the subtask object. |
|
overrideprotected |
void SubtaskItem::setTaskManager | ( | TaskManager * | manager | ) |
Sets the TaskManager object.
manager | Pointer to the TaskManager object. |
|
signal |
Signal emitted when a start/stop request is made for the subtask.
subtask | The subtask for which the request is made. |
void SubtaskItem::updateUI | ( | bool | constructorCall = false | ) |
Updates the UI elements based on the subtask's status.