WUT_Computer_Science/EGUI/lab1/blogentry.cpp

20 lines
405 B
C++
Raw Normal View History

2022-04-04 21:22:50 +02:00
#include "blogentry.h"
#include "ui_blogentry.h"
2022-04-04 21:56:57 +02:00
#include <QDateTime>
2022-04-04 21:22:50 +02:00
blogEntry::blogEntry(QWidget *parent) :
QWidget(parent),
ui(new Ui::blogEntry)
{
ui->setupUi(this);
2022-04-04 21:56:57 +02:00
QString Time = QTime::currentTime().toString();
QString Date = QDate::currentDate().toString();
ui -> dateTime -> setText(Date + " " + Time);
qDebug() << Time;
2022-04-04 21:22:50 +02:00
}
blogEntry::~blogEntry()
{
delete ui;
}