File: timemodel.h

package info (click to toggle)
qt6-remoteobjects 6.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,812 kB
  • sloc: cpp: 19,785; ansic: 47; sh: 29; python: 22; makefile: 10
file content (24 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include <QtCore>
#include "rep_timemodel_source.h"

class MinuteTimer : public MinuteTimerSimpleSource
{
    Q_OBJECT
public:
    MinuteTimer(QObject *parent = nullptr);
    ~MinuteTimer() override;

public slots:
    void SetTimeZone(const int &zn) override;

protected:
    void timerEvent(QTimerEvent *) override;

private:
    QTime time;
    QBasicTimer timer;
    int zone;
};