CCIMXDesktop
 
Loading...
Searching...
No Matches
TimeDisplayIconWidget.h
1#ifndef TIMEDISPLAYICONWIDGET_H
2#define TIMEDISPLAYICONWIDGET_H
3
4#include "../StatusBarIconWidget.h"
5#include <QTime>
6#include <QWidget>
7
8namespace Ui {
10}
11
12class QLabel;
13
20 Q_OBJECT
21
22public:
27 explicit TimeDisplayIconWidget(QWidget* parent = nullptr);
28
33
38 QLabel* displayedLabel() const;
39
40public slots:
45 void update_displayTime(QTime time);
46
47private:
48 Ui::TimeDisplayIconWidget* ui;
49};
50
51#endif // TIMEDISPLAYICONWIDGET_H
Abstract base widget class representing an icon in the status bar.
Definition StatusBarIconWidget.h:47
Widget for displaying time in the status bar.
Definition TimeDisplayIconWidget.h:19
void update_displayTime(QTime time)
Updates the displayed time.
Definition TimeDisplayIconWidget.cpp:18
~TimeDisplayIconWidget()
Destroys the time display widget.
Definition TimeDisplayIconWidget.cpp:10
QLabel * displayedLabel() const
Gets the label used for time display.
Definition TimeDisplayIconWidget.cpp:14