QtxNotify::NotifyWidget Class represented notification widget.
More...
QtxNotify::NotifyWidget Class represented notification widget.
◆ TextDocument
◆ NotifyWidget()
QtxNotify::NotifyWidget::NotifyWidget |
( |
QtxNotify * |
mgr, |
|
|
const QString & |
title, |
|
|
const QString & |
text, |
|
|
const int |
timeout, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
◆ ~NotifyWidget()
QtxNotify::NotifyWidget::~NotifyWidget |
( |
| ) |
|
|
virtual |
◆ closeRect()
QRect QtxNotify::NotifyWidget::closeRect |
( |
| ) |
const |
|
private |
Gets the notification close button rectangle.
- Returns
- close rectangle
◆ frameWidth()
int QtxNotify::NotifyWidget::frameWidth |
( |
| ) |
const |
|
private |
Gets the notification frame with.
- Returns
- Frame width in pixels
◆ id()
int QtxNotify::NotifyWidget::id |
( |
| ) |
const |
Gets the notification identifier.
- Returns
- notification identifier
◆ minimumSizeHint()
QSize QtxNotify::NotifyWidget::minimumSizeHint |
( |
| ) |
const |
|
virtual |
◆ mouseMoveEvent()
void QtxNotify::NotifyWidget::mouseMoveEvent |
( |
QMouseEvent * |
| ) |
|
|
protectedvirtual |
Reimplemented for handling close button.
◆ mousePressEvent()
void QtxNotify::NotifyWidget::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
Reimplemented for handling close button.
◆ mouseReleaseEvent()
void QtxNotify::NotifyWidget::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
Reimplemented for handling close button.
◆ notificationWidth()
int QtxNotify::NotifyWidget::notificationWidth |
( |
| ) |
const |
|
private |
Gets the notification window with.
- Returns
- width in pixels
◆ notifyMgr()
QtxNotify * QtxNotify::NotifyWidget::notifyMgr |
( |
| ) |
const |
Gets the notification manager.
- Returns
- notification manager instance
◆ onTimeout()
void QtxNotify::NotifyWidget::onTimeout |
( |
| ) |
|
|
private |
Invoked when notification close timeout and hide the notification.
◆ paintEvent()
void QtxNotify::NotifyWidget::paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protectedvirtual |
Reimplemented for notification drawing.
◆ setId()
void QtxNotify::NotifyWidget::setId |
( |
const int |
id | ) |
|
Sets the notification timeout.
- Parameters
-
id | - notification identifier |
◆ setText()
void QtxNotify::NotifyWidget::setText |
( |
const QString & |
text | ) |
|
Sets the notification text.
- Parameters
-
text | - notification text string |
◆ setTimeout()
void QtxNotify::NotifyWidget::setTimeout |
( |
const int |
timeout | ) |
|
Sets the notification timeout.
- Parameters
-
timeout | - notification timeout |
◆ setTitle()
void QtxNotify::NotifyWidget::setTitle |
( |
const QString & |
title | ) |
|
Sets the notification title.
- Parameters
-
title | - notification title string |
◆ showEvent()
void QtxNotify::NotifyWidget::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protectedvirtual |
◆ sizeHint()
QSize QtxNotify::NotifyWidget::sizeHint |
( |
| ) |
const |
|
virtual |
Gets the notification widget size hint.
- Returns
- size hint
◆ text()
QString QtxNotify::NotifyWidget::text |
( |
| ) |
const |
Gets the notification text.
- Returns
- notification text string
◆ textDocument()
◆ textRect()
QRect QtxNotify::NotifyWidget::textRect |
( |
| ) |
const |
|
private |
Gets the notification message text rectangle.
- Returns
- text rectangle
◆ timeout()
int QtxNotify::NotifyWidget::timeout |
( |
| ) |
const |
Gets the notification timeout.
- Returns
- notification timeout
◆ title()
QString QtxNotify::NotifyWidget::title |
( |
| ) |
const |
Gets the notification title.
- Returns
- notification title string
◆ titleRect()
QRect QtxNotify::NotifyWidget::titleRect |
( |
| ) |
const |
|
private |
Gets the notification title rectangle.
- Returns
- title rectangle
◆ myId
int QtxNotify::NotifyWidget::myId |
|
private |
◆ myIsClosePressed
bool QtxNotify::NotifyWidget::myIsClosePressed |
|
private |
◆ myNotifyMgr
QtxNotify* QtxNotify::NotifyWidget::myNotifyMgr |
|
private |
◆ myText
QString QtxNotify::NotifyWidget::myText |
|
private |
◆ myTimer
QTimer* QtxNotify::NotifyWidget::myTimer |
|
private |
◆ myTitle
QString QtxNotify::NotifyWidget::myTitle |
|
private |
The documentation for this class was generated from the following file: