Files
QtZeiterfassung/plugins/lunchmealplugin/lunchmealdialog.cpp
T
2017-12-29 12:37:40 +01:00

20 lines
457 B
C++

#include "lunchmealdialog.h"
#include "ui_lunchmealdialog.h"
#include <QDate>
LunchMealDialog::LunchMealDialog(const QDate &date, const QString &content, QWidget *parent) :
ZeiterfassungDialog(parent),
ui(new Ui::LunchMealDialog)
{
ui->setupUi(this);
ui->labelTitle->setText(tr("Lunch meal for %0").arg(date.toString(tr("dd.MM.yyyy"))));
ui->labelLunchMeal->setText(content);
}
LunchMealDialog::~LunchMealDialog()
{
delete ui;
}