Widget for displaying time in the status bar. More...
#include <TimeDisplayIconWidget.h>
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. | |
![]() | |
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. | |
Widget for displaying time in the status bar.
Shows current time and updates it periodically.
|
explicit |
Constructs the time display widget.
parent | Parent widget (optional) |
QLabel * TimeDisplayIconWidget::displayedLabel | ( | ) | const |
Gets the label used for time display.
|
slot |
Updates the displayed time.
time | New time to display |