Skip to content
Permalink
Browse files

Continue working on STIG editing display

  • Loading branch information
squinky86 committed Mar 11, 2020
1 parent 1feb8ef commit 7a2bb18ba76f25413813d2d3a4f500b129bb0749
Showing with 17 additions and 0 deletions.
  1. +17 −0 src/stigedit.cpp
@@ -35,6 +35,23 @@ STIGEdit::STIGEdit(STIG &stig, QWidget *parent) : TabViewWidget (parent),

ui->txtTitle->setText(stig.title);
ui->txtDescription->setText(stig.description);
ui->txtVersion->setText(QString::number(stig.version));
QString tmpRelease = stig.release;
if (tmpRelease.contains(QStringLiteral("Release: ")))
{
tmpRelease = tmpRelease.right(tmpRelease.size() - 9);
if (tmpRelease.contains(QStringLiteral(" ")))
{
ui->txtRelease->setText(tmpRelease.left(tmpRelease.indexOf(QStringLiteral(" "))));
}
}
if (tmpRelease.contains(QStringLiteral("Date: ")))
{
tmpRelease = tmpRelease.right(tmpRelease.size() - tmpRelease.indexOf(QStringLiteral("Date: ")) - 6);

QDate d = QDate::fromString(tmpRelease, QStringLiteral("dd MMM yyyy"));
ui->date->setDate(d);
}
}

/**

0 comments on commit 7a2bb18

Please sign in to comment.
You can’t perform that action at this time.