Learn Environment
Signals | Public Member Functions | Protected Member Functions | List of all members
SubtaskItem Class Reference

Represents a UI item for a subtask. More...

#include <subtask_item.hpp>

Inheritance diagram for SubtaskItem:
Inheritance graph
Collaboration diagram for SubtaskItem:
Collaboration graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SubtaskItem()

SubtaskItem::SubtaskItem ( QWidget parent,
Subtask subtask 
)

Constructs a SubtaskItem object.

Parameters
parentPointer to the parent widget.
subtaskPointer to the subtask object.

Member Function Documentation

◆ resizeEvent()

void SubtaskItem::resizeEvent ( QResizeEvent *  event)
overrideprotected
Here is the caller graph for this function:

◆ setTaskManager()

void SubtaskItem::setTaskManager ( TaskManager manager)

Sets the TaskManager object.

Parameters
managerPointer to the TaskManager object.

◆ subtaskStartStopRequested

void SubtaskItem::subtaskStartStopRequested ( const Subtask subtask)
signal

Signal emitted when a start/stop request is made for the subtask.

Parameters
subtaskThe subtask for which the request is made.

◆ updateUI()

void SubtaskItem::updateUI ( bool  constructorCall = false)

Updates the UI elements based on the subtask's status.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: