Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWidgets/lts_splitter.cpp
T
berrux-dev 855b0a6101 Remove modules not compiled by this branch's release build
Lts/Common: drop the 17 submodules excluded from the RELEASE_BUILD
branch of Lts/Common/CMakeLists.txt (CodeGen, LtsAppManager, LtsBotan,
LtsCoordinate, LtsElevation, LtsLogin, LtsMultiMonitor,
LtsPluginManager, LtsPrinting, LtsProjectionWorkstation,
LtsScriptTimeline, LtsSession, LtsTimeline, LtsTimelineClassic,
LtsVirtualKeyboard, LtsWidgets, TopicEditorBase). Only the 13
subdirectories actually built remain.

TrainingAreaBase: drop sources of targets excluded by
IF(NOT RELEASE_BUILD) / IF(BUILD_RTI) (svcTabClient, svcTabServer,
svcTrainingAreaBase exe, RecordReplayPlugin customization) and the 7
plugin directories not added in the release path (AdlerJson,
ApacheHlaJson, DebugJsonDir, HlaJson, Nmea, UAS, WlsTetra). Only
tabTelegrams, svcTabCommon and the TetraJson plugin are compiled.

Cross-checked: no kept compiled source includes headers from the
removed modules (GuiPluginInterface - the only LtsWidgets consumer -
is itself NOT RELEASE_BUILD-guarded).
2026-10-13 19:19:55 +02:00

63 lines
1.1 KiB
C++

/**
* @RDE_HEADER@
* Splitter with sizes Proberty for Animation
* $Id$
* $HeadURL$
* $Author$
*/
#include "lts_splitter.h"
#include "lts_splitter_handle.h"
namespace LtsWidgets
{
LtsSplitter::LtsSplitter(QWidget *parent)
: QSplitter(parent)
{
connect(this, &LtsSplitter::sizesChanged, this, &LtsSplitter::changeSizes);
}
LtsSplitter::~LtsSplitter()
{
}
QSplitterHandle *LtsSplitter::createHandle()
{
LtsSplitterHandle *hand = new LtsSplitterHandle(orientation(), this);
#ifdef TABLET_MODE
setHandleWidth(25);
#else
setHandleWidth(10);
#endif
return hand;
}
void LtsSplitter::collapseChild(const int index)
{
if (children().size() > index)
{
QWidget *widget = static_cast<QWidget*>(children().at(index));
if (widget)
{
QList<int> s = sizes();
s[index] = 0;
setSizes(s);
}
}
}
void LtsSplitter::animate(int handleId)
{
LtsSplitterHandle *handle = dynamic_cast<LtsSplitterHandle*>(this->handle(handleId));
handle->animate();
}
void LtsSplitter::changeSizes(const QList<int> &list)
{
QSplitter::setSizes(list);
}
} // namespace LtsWidgets