Summary: | knode statusbar field too small to show progress | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | frank.dekervel |
Component: | kstyle | Assignee: | Karol Szwed <gallium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | SVN | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
frank.dekervel
2002-06-23 17:56:50 UTC
(Thanks to Affronter for letting me know of this). OK, we've got a problem here. QProgressBar can only have percentage displays, so the "number" area of the progressbar can be at widest "100%", or something like this. But KProgress extends this to arbitrary-width strings, which are pretty much impossible to space out in advance. Further, even if we could get Light2/Light3 to work, it'd still break with Qt Platinum and Windows... And although KProgressbar can force a centered indicator, that would be horribly inconsistent :-( .. Ideas? This really isn't a bug, but a limitation of QProgressBar as it is designed to only show progress in percentage units. I suggest you force the progress text to be centered over the progressbar. Alternatively, use a QHBoxLayout with a QProgressBar that has "PercentageVisible = false", and a QLabel showing any progress text in whatever units you like. Hope this helps. Subject: kdelibs/kdeui CVS commit by orlovich: As posted on core-devel quite a bit ago (and commented on by exactly one person): force centering of indicator with custom strings, effectively fixes #44279 CCMAIL: 44279-done@bugs.kde.org M +2 -0 kprogress.cpp 1.41 --- kdelibs/kdeui/kprogress.cpp #1.40:1.41 @@ -108,4 +108,6 @@ void KProgress::setFormat(const QString { mFormat = format; + if (mFormat != "%p%") + setCenterIndicator(true); } |