marble
TimeControlWidget.cpp
Go to the documentation of this file.
33 connect( m_uiWidget->speedSlider, SIGNAL(valueChanged(int)), this, SLOT(updateSpeedLabel(int)) );
63 m_uiWidget->currentDateTimeEdit->setDateTime( m_clock->dateTime().addSecs( m_clock->timezone() ) );
68 m_uiWidget->newDateTimeEdit->setDateTime( QDateTime::currentDateTime().toUTC().addSecs( m_clock->timezone() ) );
Definition: TimeControlWidget.h:31
virtual void reject()
QDateTime toUTC() const
void setModal(bool modal)
void setDateTime(const QDateTime &datetime)
Sets the internal date and time a custom one.
Definition: MarbleClock.cpp:94
void setUpdateInterval(int seconds)
Set the interval at which dateTime() is updated and timeChanged() is emitted.
Definition: MarbleClock.cpp:105
Ui::TimeControlWidget * m_uiWidget
Definition: TimeControlWidget.h:70
TimeControlWidget(MarbleClock *clock, QWidget *parent=0)
Definition: TimeControlWidget.cpp:25
void showEvent(QShowEvent *event)
Definition: TimeControlWidget.cpp:82
virtual ~TimeControlWidget()
Definition: TimeControlWidget.cpp:46
bool spontaneous() const
virtual void accept()
QDateTime currentDateTime()
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:121
QDateTime addSecs(int s) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: MarbleClock.h:25
int updateInterval() const
Returns the interval at which dateTime() is updated and timeChanged() is emitted, The default is 60 s...
Definition: MarbleClock.cpp:111
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.