dialogappversion.cpp 596 B

123456789101112131415161718192021222324
  1. #include "dialogappversion.h"
  2. #include "textedit.h"
  3. #include <QHBoxLayout>
  4. #include <QLibraryInfo>
  5. DialogAppVersion::DialogAppVersion(QString contentPath, QString titleText, QWidget *parent)
  6. :QDialog(parent)
  7. {
  8. textViewer = new TextEdit;
  9. textViewer->setContents(contentPath);
  10. QHBoxLayout *contentLayout = new QHBoxLayout;
  11. contentLayout->setMargin(0);
  12. contentLayout->setContentsMargins(0,0,0,0);
  13. contentLayout->addWidget(textViewer);
  14. setLayout(contentLayout);
  15. setWindowTitle(titleText);
  16. resize(1024, 640);
  17. }
  18. DialogAppVersion::~DialogAppVersion() {}