MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / setIsUseAutoClock

Method setIsUseAutoClock

ElaWidgetTools/ElaLCDNumber.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void ElaLCDNumber::setIsUseAutoClock(bool isUseAutoClock)
43{
44 Q_D(ElaLCDNumber);
45 d->_pIsUseAutoClock = isUseAutoClock;
46 if (d->_pIsUseAutoClock)
47 {
48 setDigitCount(d->_pAutoClockFormat.length());
49 display(QDateTime::currentDateTime().toString(d->_pAutoClockFormat));
50 d->_clockTimer->start(200);
51 }
52 else
53 {
54 d->_clockTimer->stop();
55 display("");
56 }
57 Q_EMIT pIsUseAutoClockChanged();
58}
59
60bool ElaLCDNumber::getIsUseAutoClock() const
61{

Callers 1

T_CardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected