summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-04 08:10:19 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-06-04 08:41:07 (GMT)
commitc755c1d3c6fe60a9018308e1ce13bae6821bc214 (patch)
treed05fc3cd4b67035bfa5fc1efe412b6256e361d85 /src/gui/widgets
parentcbe3119db5380c41d44d4e936c7da4889c02f147 (diff)
downloadQt-c755c1d3c6fe60a9018308e1ce13bae6821bc214.zip
Qt-c755c1d3c6fe60a9018308e1ce13bae6821bc214.tar.gz
Qt-c755c1d3c6fe60a9018308e1ce13bae6821bc214.tar.bz2
Document that textVisible is optional when it comes to styles.
No progress bars on the mac show text and it would be bad if we allowed it. There's nothing stopping people from connecting the valueChanged() signal to a slot and have a real label layed out correctly that actually updates with the amount of time it takes to complete, etc. This is more what they do on Mac OS X if they decide to show a label.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qprogressbar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qprogressbar.cpp b/src/gui/widgets/qprogressbar.cpp
index cdb3836..1a7f878 100644
--- a/src/gui/widgets/qprogressbar.cpp
+++ b/src/gui/widgets/qprogressbar.cpp
@@ -349,6 +349,8 @@ void QProgressBar::setRange(int minimum, int maximum)
\property QProgressBar::textVisible
\brief whether the current completed percentage should be displayed
+ This property may be ignored by the style (e.g., QMacStyle never draws the text).
+
\sa textDirection
*/
void QProgressBar::setTextVisible(bool visible)