##// END OF EJS Templates
Completes visit of tab and zone...
Completes visit of tab and zone For a tab or a zone that can drops the variable, we add an action to its menu, of type "Open in new..." For example, for a tab, the new action action will be "Open in new zone". The action is separated to other actions in the menu

File last commit:

r190:c3e91a6962e0
r214:aa91a995c6e9
Show More
TimeController.cpp
26 lines | 596 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 {
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;
emit timeUpdated(dateTime);
}