CCIMXDesktop
 
Loading...
Searching...
No Matches
TimeDisplayIconWidget Class Reference

Widget for displaying time in the status bar. More...

#include <TimeDisplayIconWidget.h>

Inheritance diagram for TimeDisplayIconWidget:
StatusBarIconWidget

Public Slots

void update_displayTime (QTime time)
 Updates the displayed time.
 

Public Member Functions

 TimeDisplayIconWidget (QWidget *parent=nullptr)
 Constructs the time display widget.
 
 ~TimeDisplayIconWidget ()
 Destroys the time display widget.
 
QLabel * displayedLabel () const
 Gets the label used for time display.
 
- Public Member Functions inherited from StatusBarIconWidget
 StatusBarIconWidget (QString labeled_name, QWidget *parent=nullptr)
 Constructs a StatusBarIconWidget.
 
virtual ~StatusBarIconWidget ()=default
 Destroys the StatusBarIconWidget.
 
virtual void adjustSelfHeight (int height)
 Adjusts the widget's height to a fixed value.
 
QString labeledName () const
 Returns the labeled name of this icon.
 
bool processIconsEvent (IconEvent *icons)
 Handles an IconEvent.
 
virtual bool iconEvents (IconEvent *icons)
 Virtual handler for icon events. Override in subclasses.
 

Detailed Description

Widget for displaying time in the status bar.

Shows current time and updates it periodically.

Constructor & Destructor Documentation

◆ TimeDisplayIconWidget()

TimeDisplayIconWidget::TimeDisplayIconWidget ( QWidget *  parent = nullptr)
explicit

Constructs the time display widget.

Parameters
parentParent widget (optional)

Member Function Documentation

◆ displayedLabel()

QLabel * TimeDisplayIconWidget::displayedLabel ( ) const

Gets the label used for time display.

Returns
Pointer to the display label

◆ update_displayTime

void TimeDisplayIconWidget::update_displayTime ( QTime  time)
slot

Updates the displayed time.

Parameters
timeNew time to display

The documentation for this class was generated from the following files: