TetraIF migration and Unittest Implementation for it
Entire-Checkpoint: 14d1fef0cf36
This commit is contained in:
1 parent
a86f9b5bac
commit
ba212f9dce
78 files changed
+1611
-640
No files matched your search
@@ -71,7 +71,7 @@ void MainWindow::slot_analysieren()
|
||||
ui->labelResult->setText(QString());
|
||||
QString ISSI = ui->lineEditISSI->text();
|
||||
if (ISSI.isEmpty())
|
||||
ISSI = QLatin1String("1");
|
||||
ISSI = QStringLiteral("1");
|
||||
m_logfileList.clear();
|
||||
|
||||
|
||||
@@ -79,8 +79,8 @@ void MainWindow::slot_analysieren()
|
||||
m_files = folder.entryList();
|
||||
folder.~QDir();
|
||||
ui->progressBar->setValue(1);
|
||||
const QString paytext = ISSI + QLatin1String("-payload");
|
||||
const QString issitext = ISSI + QLatin1String("-1");
|
||||
const QString paytext = ISSI + QStringLiteral("-payload");
|
||||
const QString issitext = ISSI + QStringLiteral("-1");
|
||||
for (int i = 0; i < m_files.count(); i++)
|
||||
{
|
||||
|
||||
@@ -92,7 +92,7 @@ void MainWindow::slot_analysieren()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!name.contains(QLatin1String(".dat")))
|
||||
if (!name.contains(QStringLiteral(".dat")))
|
||||
{
|
||||
m_files.removeAt(i);
|
||||
i--;
|
||||
@@ -119,7 +119,7 @@ void MainWindow::slot_analysieren()
|
||||
readFiles();
|
||||
ui->progressBar->setValue(90);
|
||||
ui->progressBar->repaint();
|
||||
QString ausgabetext = QLatin1String("\tANALYSIS COMPLETED - ") + QString::number(auswerten()) + QLatin1String(" missing messages");
|
||||
QString ausgabetext = QStringLiteral("\tANALYSIS COMPLETED - ") + QString::number(auswerten()) + QStringLiteral(" missing messages");
|
||||
ui->labelResult->setText(ausgabetext);
|
||||
}
|
||||
ui->progressBar->setValue(100);
|
||||
@@ -181,7 +181,7 @@ void MainWindow::openLogfile(const QString &folder, int count)
|
||||
{
|
||||
m_logfile = folder;
|
||||
m_logZeiten = folder;
|
||||
m_logfile += QLatin1String("/logfile_analysis.txt");
|
||||
m_logfile += QStringLiteral("/logfile_analysis.txt");
|
||||
QFile file(m_logfile);
|
||||
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
|
||||
{
|
||||
@@ -189,7 +189,7 @@ void MainWindow::openLogfile(const QString &folder, int count)
|
||||
file.write(msg.toUtf8());
|
||||
file.close();
|
||||
}
|
||||
m_logZeiten += QLatin1String("/transmission_times.csv");
|
||||
m_logZeiten += QStringLiteral("/transmission_times.csv");
|
||||
file.setFileName(m_logZeiten);
|
||||
if (file.open(QIODevice::WriteOnly))
|
||||
{
|
||||
@@ -206,13 +206,13 @@ void MainWindow::writeToLogfile(const QString &issi,
|
||||
const QString &bytes)
|
||||
{
|
||||
QString text = issi;
|
||||
text += QLatin1String(": ");
|
||||
text += timestamp.toString(QLatin1String("dd.MM.yyyy hh:mm:ss"));
|
||||
text += QLatin1String(" - ");
|
||||
text += QStringLiteral(": ");
|
||||
text += timestamp.toString(QStringLiteral("dd.MM.yyyy hh:mm:ss"));
|
||||
text += QStringLiteral(" - ");
|
||||
text += filename;
|
||||
text += QLatin1String(" -> ");
|
||||
text += QStringLiteral(" -> ");
|
||||
text += bytes;
|
||||
text += QLatin1String(" --> ");
|
||||
text += QStringLiteral(" --> ");
|
||||
text += QString::number(lfdNr, 10);
|
||||
text += QLatin1Char('\n');
|
||||
QFile file(m_logfile);
|
||||
@@ -235,13 +235,13 @@ void MainWindow::writeToLogfile(const QString &issi,
|
||||
uint lfdNr)
|
||||
{
|
||||
QString text = issi;
|
||||
text += QLatin1String(": ");
|
||||
text += sendeZeit.toString(QLatin1String("hh:mm:ss"));
|
||||
text += QLatin1String(" --> ");
|
||||
text += timestamp.toString(QLatin1String("dd.MM.yyyy hh:mm:ss"));
|
||||
text += QLatin1String(" - ");
|
||||
text += QStringLiteral(": ");
|
||||
text += sendeZeit.toString(QStringLiteral("hh:mm:ss"));
|
||||
text += QStringLiteral(" --> ");
|
||||
text += timestamp.toString(QStringLiteral("dd.MM.yyyy hh:mm:ss"));
|
||||
text += QStringLiteral(" - ");
|
||||
text += filename;
|
||||
text += QLatin1String(" --> ");
|
||||
text += QStringLiteral(" --> ");
|
||||
text += QString::number(lfdNr, 10);
|
||||
text += QLatin1Char('\n');
|
||||
QFile file(m_logfile);
|
||||
@@ -416,9 +416,9 @@ void MainWindow::writeLogZeiten(const QDateTime &beginn, const QDateTime &end, c
|
||||
{
|
||||
QString msg = issi;
|
||||
msg += QLatin1Char(';');
|
||||
msg += beginn.toString(QLatin1String("hh:mm:ss"));
|
||||
msg += beginn.toString(QStringLiteral("hh:mm:ss"));
|
||||
msg += QLatin1Char(';');
|
||||
msg += end.toString(QLatin1String("hh:mm:ss"));
|
||||
msg += end.toString(QStringLiteral("hh:mm:ss"));
|
||||
msg += QLatin1Char('\n');
|
||||
QFile file(m_logZeiten);
|
||||
file.open(QIODevice::Append | QIODevice::Text);
|
||||
|
||||
Reference in new issue
Block a user