Widget that shows all task details. More...
#include <taskdetailswidget.h>
Public Member Functions | |
TaskDetailsWidget (const control::data::TaskTypeDetails &type, QWidget *parent=0) | |
Creates a new task detail widget. | |
void | setDetails (const control::data::TaskDetails &details) |
Sets the given details. | |
control::data::TaskDetails | currentDetails () const |
Returns the current details. | |
void | setTasks (control::TaskModel *tasks) |
Sets the given tasks. | |
void | setUserRequirements (control::UserRequirementsModel *model) |
void | setResourceRequirements (control::ResourceRequirementsModel *model) |
void | setEditMode (bool editMode) |
Private Member Functions | |
void | initType (const control::data::TaskTypeDetails &type) |
Private Attributes | |
Ui::TaskDetailsWidget | widgets |
QMap< QString, InputWidget * > | fieldWidgets |
bool | editMode |
Widget that shows all task details.
This widget is used to set, show or modify task details
Definition at line 32 of file taskdetailswidget.h.
TaskDetailsWidget::TaskDetailsWidget | ( | const control::data::TaskTypeDetails & | type, | |
QWidget * | parent = 0 | |||
) |
Creates a new task detail widget.
parent | The parent widget for this widget |
Definition at line 17 of file taskdetailswidget.cpp.
void TaskDetailsWidget::setDetails | ( | const control::data::TaskDetails & | details | ) |
Sets the given details.
details | Details to set in the widget |
Definition at line 48 of file taskdetailswidget.cpp.
void TaskDetailsWidget::setTasks | ( | control::TaskModel * | tasks | ) |
Sets the given tasks.
tasks | Tasks to set in the widget |
Definition at line 93 of file taskdetailswidget.cpp.