marble
MarbleClock.cpp
Go to the documentation of this file.
70 int sleeptime = ( m_updateInterval * 1000 - (qreal)(m_datetime.time().msec() + m_datetime.time().second() * 1000 ) ) / m_speed;
void setDateTime(const QDateTime &datetime)
Sets the internal date and time a custom one.
Definition: MarbleClock.cpp:104
void setUpdateInterval(int seconds)
Set the interval at which dateTime() is updated and timeChanged() is emitted.
Definition: MarbleClock.cpp:115
int updateInterval()
Returns the interval at which dateTime() is updated and timeChanged() is emitted, The default is 60 s...
Definition: MarbleClock.cpp:121
void updateIntervalChanged(int seconds)
Emitted when setUpdateInterval() is called.
void setSpeed(int speed)
Sets the speed of the timer which is how fast the marble clock can run relative to actual speed of ti...
Definition: MarbleClock.cpp:131
qreal dayFraction() const
Determine how much of the current day has elapsed.
Definition: MarbleClock.cpp:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.