Abstract base widget class representing an icon in the status bar.
More...
#include <StatusBarIconWidget.h>
Abstract base widget class representing an icon in the status bar.
Each StatusBarIconWidget instance has a labeled name and optionally responds to IconEvent instances. Subclass this for specific icons like network, battery, etc.
◆ StatusBarIconWidget()
StatusBarIconWidget::StatusBarIconWidget |
( |
QString |
labeled_name, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Constructs a StatusBarIconWidget.
- Parameters
-
labeled_name | The identifier label for this icon. |
parent | Optional parent QWidget. |
◆ adjustSelfHeight()
void StatusBarIconWidget::adjustSelfHeight |
( |
int |
height | ) |
|
|
virtual |
◆ iconEvents()
bool StatusBarIconWidget::iconEvents |
( |
IconEvent * |
icons | ) |
|
|
virtual |
Virtual handler for icon events. Override in subclasses.
- Parameters
-
- Returns
- True if handled; false to ignore.
Reimplemented in NetStatusStatusBarIconWidget.
◆ labeledName()
QString StatusBarIconWidget::labeledName |
( |
| ) |
const |
Returns the labeled name of this icon.
- Returns
- The label as a QString.
◆ processIconsEvent()
bool StatusBarIconWidget::processIconsEvent |
( |
IconEvent * |
icons | ) |
|
Handles an IconEvent.
- Parameters
-
- Returns
- True if the event was processed, false otherwise.
< don't matching these
< means the object ignores the sessions
The documentation for this class was generated from the following files: