mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-11 01:07:08 +01:00
20 lines
405 B
C++
20 lines
405 B
C++
#include "blogentry.h"
|
|
#include "ui_blogentry.h"
|
|
#include <QDateTime>
|
|
|
|
blogEntry::blogEntry(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::blogEntry)
|
|
{
|
|
ui->setupUi(this);
|
|
QString Time = QTime::currentTime().toString();
|
|
QString Date = QDate::currentDate().toString();
|
|
ui -> dateTime -> setText(Date + " " + Time);
|
|
qDebug() << Time;
|
|
}
|
|
|
|
blogEntry::~blogEntry()
|
|
{
|
|
delete ui;
|
|
}
|