35 lines
573 B
C++
35 lines
573 B
C++
#ifndef TASKDIALOG_H
|
|
#define TASKDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QVector>
|
|
#include <QComboBox>
|
|
|
|
#include "../models/status.h"
|
|
#include "../models/priority.h"
|
|
#include "../models/task.h"
|
|
|
|
namespace Ui {
|
|
class TaskDialog;
|
|
}
|
|
|
|
class TaskDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TaskDialog(QWidget *parent = nullptr);
|
|
TaskDialog(Task *t, QWidget *parent = nullptr);
|
|
~TaskDialog();
|
|
|
|
Task getTask();
|
|
|
|
private:
|
|
Ui::TaskDialog *ui;
|
|
|
|
void init();
|
|
void initSelectionCombobox(QString uuid, QComboBox *cbx);
|
|
};
|
|
|
|
#endif // TASKDIALOG_H
|