Build script changes: - Add --group6/--no-group6 argument support to new_docker_build.sh - Add GROUP6_TARGETS array with 11 LTS tools - Add BUILD_GROUP6 environment variable export - Add GROUP6 build invocation in run_build_group function Test infrastructure: - Create CTest test files for all 11 Group 6 tools - Add exclusion filters in tests/CMakeLists.txt for conditional builds - Tests follow gtest pattern: CompilationStub, Qt6ApiCompatibility, BasicFunctionality Qt6 migration bug fixes: - DBAdministration: Fix m_id → id member access (3 files) - DBAdministration: Add missing QFile include in showLogFile.cpp - DBUpdate: Add CMAKE_AUTOUIC_SEARCH_PATHS for ui/ directory - DBUpdate: Fix m_id → id, m_description → description (3 files) Build validation: - DBAdministration, DBOperatorSettingsRemover, DBUpdate build successfully - Remaining tools blocked by pre-existing Group 3 (ExerciseManagement) errors - Policy checks passed Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
60 lines
1.1 KiB
C++
Executable File
60 lines
1.1 KiB
C++
Executable File
/*
|
|
* @RDE_HEADER@
|
|
* <short description>
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Malte Schröder, SLSE, 2016-06-08
|
|
*/
|
|
|
|
#include "showLogFile.h"
|
|
#include "ui_showLogFile.h"
|
|
#include <nglsettings/nglsettings_settings.h>
|
|
#include <QtCore/QFile>
|
|
|
|
namespace DBAdministration
|
|
{
|
|
ShowLogFile::ShowLogFile(QWidget *parent)
|
|
: QWidget(parent)
|
|
, m_ui(new Ui::ShowLogFile)
|
|
, m_logger(getLogger("ShowLogFile"))
|
|
{
|
|
m_ui->setupUi(this);
|
|
|
|
connect(m_ui->pbClose, &QPushButton::clicked, this, &ShowLogFile::onClosedClicked);
|
|
|
|
}
|
|
|
|
ShowLogFile::~ShowLogFile()
|
|
{
|
|
delete m_ui;
|
|
}
|
|
|
|
bool ShowLogFile::init()
|
|
{
|
|
QString logFile = NGL::Settings::logPath() + QStringLiteral("/") + QString::fromLatin1(qgetenv("USER")) + QStringLiteral("_scm.log");
|
|
|
|
ERROR_LOG(m_logger) << "Logfile: " << logFile;
|
|
|
|
QFile file(logFile);
|
|
|
|
if (!file.open(QIODevice::ReadOnly))
|
|
{
|
|
ERROR_LOG(m_logger) << "Cannot open file " << logFile;
|
|
return false;
|
|
}
|
|
|
|
QByteArray output = file.readAll();
|
|
|
|
m_ui->plainTextEdit->setPlainText(QString::fromLocal8Bit(output));
|
|
|
|
return true;
|
|
}
|
|
|
|
void ShowLogFile::onClosedClicked()
|
|
{
|
|
close();
|
|
}
|
|
|
|
} // namespace DBAdministration
|