summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-06-04 08:10:19 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-06-07 02:24:29 (GMT)
commit5421d6a727885cf5d8c69e7a0c388921f81a673e (patch)
tree3970fd045e5f5c0b7b33fdd48d677147ec860a66 /src
parent8748594ab58a6b255cc4eef4a1defac48204d047 (diff)
downloadQt-5421d6a727885cf5d8c69e7a0c388921f81a673e.zip
Qt-5421d6a727885cf5d8c69e7a0c388921f81a673e.tar.gz
Qt-5421d6a727885cf5d8c69e7a0c388921f81a673e.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. (cherry picked from commit c755c1d3c6fe60a9018308e1ce13bae6821bc214)
Diffstat (limited to 'src')
-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 d789d0e..4e05f48 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)