forked from sstsimulator/sst-workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DialogExportDisplayStatus.cpp
38 lines (32 loc) · 1.27 KB
/
DialogExportDisplayStatus.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
////////////////////////////////////////////////////////////////////////
// Copyright 2009-2015 Sandia Corporation. Under the terms
// of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2015, Sandia Corporation
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the top level directory of the
// distribution.
////////////////////////////////////////////////////////////////////////
#include "DialogExportDisplayStatus.h"
#include "ui_DialogExportDisplayStatus.h"
//////////////////////////////////////////////////////////////////////////////
DialogExportDisplayStatus::DialogExportDisplayStatus(QString& ExportResults, QStringList& ExportErrorWarningList, QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogExportDisplayStatus)
{
// Setup the Dialog
ui->setupUi(this);
// Populate the Dialog Controls
ui->Results->setText(ExportResults);
// Display all the warnings
for (int x = 0; x < ExportErrorWarningList.count(); x++) {
new QListWidgetItem(ExportErrorWarningList.at(x), ui->ResultsList);
}
}
DialogExportDisplayStatus::~DialogExportDisplayStatus()
{
delete ui;
}