Files
qt5-legatus-legacy/Lts/Plugins/SituationReplay/Gui/ReplayControl/replay_control_dialog.cpp
T
2026-08-13 18:33:10 +02:00

40 lines
892 B
C++
Executable File

/**
* @RDE_HEADER@
* LtsDialog container for the exportable widget with replay controls
* $Id$
* $HeadURL$
* $Author$
* Created by Mike Wille, NLE, 2019-10-02
*/
#include "replay_control_dialog.h"
#include <QHBoxLayout>
namespace SituationReplay
{
SituationReplayControlDialog::SituationReplayControlDialog(SituationReplayControlWidget *replayWidget, QWidget *parent)
: LtsWidgets::LtsDialog(parent, LtsWidgets::ButtonCombination::CloseOnly)
, m_logger(getLogger("ReplayControlDialog"))
{
auto l = new QHBoxLayout;
setLayout(l);
l->addWidget(replayWidget);
replayWidget->show();
setOnlineHelpFilename(QStringLiteral("Situation-Start_Situation_Playback"));
}
void SituationReplayControlDialog::retranslate()
{
// lupdate doesn't like translate(tr("foo")) ...
const QString txt(tr("Replay Control"));
translate(txt);
}
} // namespace SituationReplay