aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-10-03 10:24:01 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-04 12:29:36 +0200
commit93f3ad9fe06763230530f3f7dd203d68f1a9c4f1 (patch)
tree682e3855fe0e0eebabb05b09c71a7111f1e73f15 /src
parent349c44b1baa315ad96af96090b6378c9c83c460c (diff)
Enhance the QWinTaskbarButton docs
Change-Id: I30661911dd6b6439208ec220354579ef7083a94d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/winextras/qwintaskbarbutton.cpp31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/winextras/qwintaskbarbutton.cpp b/src/winextras/qwintaskbarbutton.cpp
index 4ba73ee..48a6bbc 100644
--- a/src/winextras/qwintaskbarbutton.cpp
+++ b/src/winextras/qwintaskbarbutton.cpp
@@ -1,6 +1,7 @@
/****************************************************************************
**
** Copyright (C) 2013 Ivan Vizir <define-true-false@yandex.com>
+ ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtWinExtras module of the Qt Toolkit.
@@ -65,8 +66,19 @@ QT_BEGIN_NAMESPACE
\since 5.2
The QWinTaskbarButton class enables you to set overlay icons on a taskbar
- button, to display a progress indicator, and to add a small toolbar to the
- window thumbnail popup.
+ button, and provides access to its progress indicator.
+
+ An overlay icon indicates change in the state of an application, whereas
+ a progress indicator shows how time-consuming tasks are progressing.
+
+ \image taskbar-button.png Taskbar Button
+
+ The following example code illustrates how to use the QWinTaskbarButton
+ and QWinTaskbarProgress classes to adjust the look of the taskbar button:
+
+ \snippet code/taskbar.cpp taskbar_cpp
+
+ \sa QWinTaskbarProgress
*/
static TBPFLAG nativeProgressState(QWinTaskbarProgress *progress)
@@ -155,7 +167,10 @@ void QWinTaskbarButtonPrivate::_q_updateProgress()
}
/*!
- Constructs a QWinTaskbarButton with the parent object \a parent.
+ Constructs a QWinTaskbarButton with the specified \a parent.
+
+ If \a parent is an instance of QWindow, it is automatically
+ assigned as the taskbar button's \l window.
*/
QWinTaskbarButton::QWinTaskbarButton(QObject *parent) :
QObject(parent), d_ptr(new QWinTaskbarButtonPrivate)
@@ -198,7 +213,7 @@ QWindow *QWinTaskbarButton::window() const
/*!
\property QWinTaskbarButton::overlayIcon
- \brief the overlay icon of the button
+ \brief the overlay icon of the taskbar button
*/
QIcon QWinTaskbarButton::overlayIcon() const
{
@@ -214,10 +229,6 @@ void QWinTaskbarButton::setOverlayIcon(const QIcon &icon)
d->updateOverlayIcon();
}
-/*!
- Clears the previously set overlay icon.
- \sa QWinTaskbarButton::setOverlayIcon()
- */
void QWinTaskbarButton::clearOverlayIcon()
{
setOverlayAccessibleDescription(QString());
@@ -227,6 +238,8 @@ void QWinTaskbarButton::clearOverlayIcon()
/*!
\property QWinTaskbarButton::overlayAccessibleDescription
\brief the description of the overlay for accessibility purposes
+
+ \sa overlayIcon
*/
QString QWinTaskbarButton::overlayAccessibleDescription() const
{
@@ -245,6 +258,8 @@ void QWinTaskbarButton::setOverlayAccessibleDescription(const QString &descripti
/*!
\property QWinTaskbarButton::progress
\brief the progress indicator of the taskbar button
+
+ \note The progress indicator is not \l{QWinTaskbarProgress::visible}{visible} by default.
*/
QWinTaskbarProgress *QWinTaskbarButton::progress() const
{