##// END OF EJS Templates
Fixed untimely update of the range to be displayed in the variable widget
Fixed untimely update of the range to be displayed in the variable widget

File last commit:

r512:d00d6fd96c10
r654:aff19a50babf
Show More
TimeController.cpp
29 lines | 635 B | text/x-c | CppLexer
/ core / src / Time / TimeController.cpp
Add the time controller.
r190 #include "Time/TimeController.h"
Q_LOGGING_CATEGORY(LOG_TimeController, "TimeController")
struct TimeController::TimeControllerPrivate {
Change SqpRange for SqpDateTime
r512 SqpRange m_DateTime;
Add the time controller.
r190 };
TimeController::TimeController(QObject *parent)
: QObject{parent}, impl{spimpl::make_unique_impl<TimeControllerPrivate>()}
{
qCDebug(LOG_TimeController()) << tr("TimeController construction");
}
Change SqpRange for SqpDateTime
r512 SqpRange TimeController::dateTime() const noexcept
Add the time controller.
r190 {
return impl->m_DateTime;
}
Change SqpRange for SqpDateTime
r512 void TimeController::onTimeToUpdate(SqpRange dateTime)
Add the time controller.
r190 {
impl->m_DateTime = dateTime;
Add apply button and its connection for timewidget
r302 }
Add the time controller.
r190
Add apply button and its connection for timewidget
r302 void TimeController::onTimeNotify()
{
emit timeUpdated(impl->m_DateTime);
Add the time controller.
r190 }