forked from ZDisket/TensorVox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modelinfodlg.cpp
26 lines (21 loc) · 873 Bytes
/
modelinfodlg.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
#include "modelinfodlg.h"
#include "ui_modelinfodlg.h"
ModelInfoDlg::ModelInfoDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::ModelInfoDlg)
{
ui->setupUi(this);
}
ModelInfoDlg::~ModelInfoDlg()
{
delete ui;
}
void ModelInfoDlg::SetInfo(const QString &ModelName, const QString &Info, int32_t InVersion, const QString &Author, const QString &Repo, const QString &MelGen, const QString &Vocoder, uint32_t SampleRate)
{
ui->lblAuthor->setText("Author: " + Author);
ui->lblVersion->setText("Version: " + QString::number(InVersion) + " ");
ui->redtModelInfo->setText(QString(Info).replace("(/NL)","\n"));
ui->lblModelTitle->setText(ModelName);
ui->lblModelArchitecture->setText("Architecture: " + Repo + " " + MelGen + " & " + Vocoder);
ui->lblSampleRate->setText("Sampling rate: " + QString::number(SampleRate / 1000) + "KHz");
}