#include "exceptionbatchitem.h" #include CExceptionBatchItem::CExceptionBatchItem(QWidget *parent) : QWidget(parent) { ui.setupUi(this); } CExceptionBatchItem::~CExceptionBatchItem() { } void CExceptionBatchItem::SetBatchInfo(batch_info info) { m_batchInfo = info; QString _fileName(info.zipfile_name); ui.label_zipfilename->setText(_fileName); ui.label_zipfilename->setToolTip(_fileName); QDateTime time_1 = QDateTime::fromTime_t(atol(info.create_time)); ui.label_zipfiledatatime->setText(time_1.toString("yyyy-MM-dd hh:mm:ss")); }