feature/integrate-jenkins-code-coverage #3

Merged
torsten merged 19 commits from feature/integrate-jenkins-code-coverage into main 2026-10-22 20:59:05 +00:00
2 changed files with 11 additions and 7 deletions
Showing only changes of commit fa3a27c123 - Show all commits

No files matched your search

@@ -66,6 +66,10 @@ add_executable(Qt6MigratedBenchmarkTest
MainWindow.cpp
)
target_include_directories(Qt6MigratedBenchmarkTest PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(Qt6MigratedBenchmarkTest PRIVATE
Qt6::Core
Qt6::Gui
@@ -13,10 +13,10 @@ MainWindow::MainWindow(QWidget* parent)
{
ui->setupUi(this);
setWindowTitle(u"Qt6 Legacy Migration Benchmark"_s);
setWindowTitle(QStringLiteral("Qt6 Legacy Migration Benchmark"));
ui->label->setText(u"Bitte Text wie Test123 eingeben."_s);
ui->iconLabel->setPixmap(QPixmap(u":/icons/app.png"_s).scaled(48, 48));
ui->label->setText(QStringLiteral("Bitte Text wie Test123 eingeben."));
ui->iconLabel->setPixmap(QPixmap(QStringLiteral(":/icons/app.png")).scaled(48, 48));
connect(ui->validateButton, &QPushButton::clicked, this, &MainWindow::onValidateClicked);
connect(ui->screenButton, &QPushButton::clicked, this, &MainWindow::onScreenInfoClicked);
@@ -37,10 +37,10 @@ QString MainWindow::getScreenInfo() const
const QScreen* screen = QApplication::primaryScreen();
if (!screen)
{
return u"Screen: unavailable"_s;
return QStringLiteral("Screen: unavailable");
}
const QRect geometry = screen->geometry();
return u"Screen: %1x%2"_s.arg(geometry.width()).arg(geometry.height());
return QStringLiteral("Screen: %1x%2").arg(geometry.width()).arg(geometry.height());
}
void MainWindow::onValidateClicked()
@@ -49,11 +49,11 @@ void MainWindow::onValidateClicked()
if (validateInput(text))
{
ui->resultLabel->setText(u"Match"_s);
ui->resultLabel->setText(QStringLiteral("Match"));
}
else
{
ui->resultLabel->setText(u"No match"_s);
ui->resultLabel->setText(QStringLiteral("No match"));
}
}