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).
43 lines
859 B
C++
43 lines
859 B
C++
/**
|
|
* @RDE_HEADER@
|
|
* LtsWidget - a QLabel which elides the text if necessary
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, NLE, 2018-12-17
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QLabel>
|
|
#include <LtsWidgets/lts_widgets_export.h>
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
|
|
class LTSWIDGETS_EXPORT LtsElidedLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Q_PROPERTY(Qt::TextElideMode ElideMode READ elideMode WRITE setElideMode)
|
|
|
|
using QLabel::QLabel;
|
|
|
|
void setElideMode(Qt::TextElideMode elideMode);
|
|
Qt::TextElideMode elideMode() const { return m_elideMode; }
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *e) override;
|
|
void resizeEvent(QResizeEvent *e) override;
|
|
|
|
private:
|
|
void updateCachedTexts();
|
|
|
|
private:
|
|
Qt::TextElideMode m_elideMode = Qt::ElideRight;
|
|
QString m_cachedElidedText;
|
|
QString m_cachedText;
|
|
};
|
|
|
|
} // namespace LtsWidgets
|