exceptionbatchitem.cpp 562 B

12345678910111213141516171819202122232425
  1. #include "exceptionbatchitem.h"
  2. #include <QDateTime>
  3. CExceptionBatchItem::CExceptionBatchItem(QWidget *parent)
  4. : QWidget(parent)
  5. {
  6. ui.setupUi(this);
  7. }
  8. CExceptionBatchItem::~CExceptionBatchItem()
  9. {
  10. }
  11. void CExceptionBatchItem::SetBatchInfo(batch_info info)
  12. {
  13. m_batchInfo = info;
  14. QString _fileName(info.zipfile_name);
  15. ui.label_zipfilename->setText(_fileName);
  16. ui.label_zipfilename->setToolTip(_fileName);
  17. QDateTime time_1 = QDateTime::fromTime_t(atol(info.create_time));
  18. ui.label_zipfiledatatime->setText(time_1.toString("yyyy-MM-dd hh:mm:ss"));
  19. }