-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimportwindow.cpp
More file actions
35 lines (32 loc) · 944 Bytes
/
importwindow.cpp
File metadata and controls
35 lines (32 loc) · 944 Bytes
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
#include "importwindow.h"
#include "ui_importwindow.h"
#include "QString"
ImportWindow::ImportWindow(QList<QString> sucFiles,QList<QString> unSucFiles,QWidget *parent) :
QDialog(parent),
ui(new Ui::ImportWindow)
{
ui->setupUi(this);
ui->sucLabel->setText(QString::number(sucFiles.count()));
ui->unSucLabel->setText(QString::number(unSucFiles.count()));
for(int i=0;i<sucFiles.count();i++)
{
ui->sucListLabel->setText(ui->sucListLabel->text()+sucFiles.at(i)+"\n");
}
QPalette p;
p.setColor(QPalette::WindowText, Qt::red);
ui->unSucLabel->setPalette(p);
ui->label_3->setPalette(p);
ui->unSucListLabel->setPalette(p);
for(int i=0;i<unSucFiles.count();i++)
{
ui->unSucListLabel->setText(ui->unSucListLabel->text()+unSucFiles.at(i)+"\n");
}
}
ImportWindow::~ImportWindow()
{
delete ui;
}
void ImportWindow::on_pushButton_clicked()
{
this->close();
}