VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtAnalogClock.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 
11 #ifndef DTANALOGCLOCK_H
12 #define DTANALOGCLOCK_H
13 
14 #include <vrvCoreQt/vrvCoreQt.h>
15 #include <QtWidgets/QWidget>
16 #include <QtCore/QTime>
17 
18 namespace makVrv
19 {
20 
23  class DT_DLL_VRVCOREQT DtAnalogClock : public QWidget
24  {
25  Q_OBJECT
26  Q_PROPERTY(QColor HourColor MEMBER myHourColor USER true)
27  Q_PROPERTY(QColor MinuteColor MEMBER myMinuteColor USER true)
28  Q_PROPERTY(QColor SecondColor MEMBER mySecondColor USER true)
29 
30  public:
31 
33  DtAnalogClock(QWidget *parent = 0);
34 
36  virtual ~DtAnalogClock();
37 
40  virtual void setTime(QTime time);
41 
42  protected:
44  virtual void paintEvent(QPaintEvent *event);
45 
46  QColor myHourColor;
47  QColor myMinuteColor;
48  QColor mySecondColor;
49 
50  QTime myTime;
51  };
52 
53 }
54 
55 #endif
A basic analog clock control.
Definition: DtAnalogClock.h:23
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)