-
Notifications
You must be signed in to change notification settings - Fork 0
/
dialogresult.cpp
32 lines (26 loc) · 996 Bytes
/
dialogresult.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
#include "dialogresult.h"
#include "ui_dialogresult.h"
DialogResult::DialogResult(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogResult)
{
ui->setupUi(this);
}
DialogResult::~DialogResult()
{
delete ui;
}
void DialogResult::ShowResult(int parIterationCount, int parClusterCount, QImage parImage, QString method)
{
this->close();
ui->labelClusteredImage->setPixmap(QPixmap().fromImage(parImage).scaled(ui->labelClusteredImage->size(),
Qt::KeepAspectRatio));
ui->labelInfo->setText(method
+ " "
+ QString::fromUtf8("Сегментов: ")
+ QString::number(parClusterCount)
+ QString::fromUtf8(". Выполено за ")
+ QString::number(parIterationCount)
+ QString::fromUtf8(" итераций"));
this->show();
}