123456789101112131415161718192021222324 |
- #include "dialogappversion.h"
- #include "textedit.h"
- #include <QHBoxLayout>
- #include <QLibraryInfo>
- DialogAppVersion::DialogAppVersion(QString contentPath, QString titleText, QWidget *parent)
- :QDialog(parent)
- {
- textViewer = new TextEdit;
- textViewer->setContents(contentPath);
- QHBoxLayout *contentLayout = new QHBoxLayout;
- contentLayout->setMargin(0);
- contentLayout->setContentsMargins(0,0,0,0);
- contentLayout->addWidget(textViewer);
- setLayout(contentLayout);
- setWindowTitle(titleText);
- resize(1024, 640);
- }
- DialogAppVersion::~DialogAppVersion() {}
|