- LogView: take the complete XmlPatterns (d327c66c4) file set - the
auto-merged mix (XmlPatterns .cpp + validation .hpp) left duplicated
m_logger members and constructor signature mismatches, because the
two lineages reworked the module differently.
- LogView CMakeLists: the cleanup version (separate LogViewLogger
static library, required by tabPluginTetraJson and present in the
Release 2 target list).
- LtsUtilsGuiDds: link ddscore (BUILD_RTI) for the Core::FunctionReply
symbols, as in story/release-2-cleanup.
Full-scope ninja all is green; ctest 20/22 (the two failures,
GrantleeParserSmoke and utils_test, are out of the driver's 46-target
scope and 'Not Run' in the official baseline).
60 lines
761 B
C++
60 lines
761 B
C++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "LogViewSpinBox.hpp"
|
|
#include "LogViewField.hpp"
|
|
|
|
namespace N_LogView
|
|
{
|
|
|
|
|
|
LogViewSpinBox::LogViewSpinBox(LogViewField* a_field, QWidget* a_parent, const int a_value)
|
|
: QSpinBox(a_parent)
|
|
, LogViewWidget(a_field, this, a_parent, false)
|
|
{
|
|
|
|
uint16_t maxArraySize = a_field->maxArraySize();
|
|
setRange(0, maxArraySize);
|
|
|
|
|
|
setValue(a_value);
|
|
|
|
|
|
setToolTip(tr("<nobr>Wertebereich: 0..%1</nobr>").arg(maxArraySize));
|
|
|
|
|
|
connect(this, &LogViewSpinBox::editingFinished,
|
|
this, &LogViewSpinBox::finishEditing);
|
|
}
|
|
|
|
|
|
|
|
void LogViewSpinBox::finishEditing()
|
|
{
|
|
emit valueEditingFinished(text().toInt());
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool LogViewSpinBox::saveContent(LogViewTelegram* a_telegram)
|
|
{
|
|
Q_UNUSED(a_telegram);
|
|
|
|
return false;
|
|
}
|
|
|
|
}
|