##// END OF EJS Templates
variable time is now set to range graphe displayed when it is displayed...
variable time is now set to range graphe displayed when it is displayed in it

File last commit:

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