Summary: | toolbar text under icons cut off | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | Will Stephenson <wstephenson> |
Component: | general | Assignee: | Camilla Boemann <cbo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cniehaus, hitboxx, joerg.baeuerle, long, missive, null, pij, rdieter, schwarzer, superandrzej, sven.burmeister |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: |
Description
Will Stephenson
2009-03-06 14:47:47 UTC
This patch should help out a bit, I have no time to look for the real solution now ... --- a/oxygen.cpp +++ b/oxygen.cpp @@ -3061,7 +3061,8 @@ QSize OxygenStyle::sizeFromContents(ContentsType type, const QStyleOption* optio if (const QStyleOptionToolButton* tbOpt = qstyleoption_cast<const QStyleOptionToolButton*>(option)) { if ((!tbOpt->icon.isNull()) && (!tbOpt->text.isEmpty()) && tbOpt->toolButtonStyle == Qt::ToolButtonTextUnderIcon) - size.setHeight(size.height()-9); + // TODO: Make this font size dependent + size.setHeight(size.height()-5); } // We want to avoid super-skiny buttons, for things like "up" when icons + text *** Bug 187986 has been marked as a duplicate of this bug. *** *** Bug 188324 has been marked as a duplicate of this bug. *** *** Bug 190441 has been marked as a duplicate of this bug. *** *** Bug 173452 has been marked as a duplicate of this bug. *** *** Bug 192553 has been marked as a duplicate of this bug. *** SVN commit 969192 by huynhhuu: Fix cropped toolbar labels BUG: 193018 BUG: 186340 M +2 -1 oxygen.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=969192 *** Bug 194084 has been marked as a duplicate of this bug. *** From Qt 4.5.2 changelog: - QToolButton * [252554] Fixed a problem where text labels would be partially clipped when using Qt::ToolButtonTextUnderIcon. http://www.qtsoftware.com/developer/changes/changes-4.5.2 *** Bug 153995 has been marked as a duplicate of this bug. *** |