summaryrefslogtreecommitdiffstats
path: root/src/widgets/qgroupbox.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-08-08 15:38:38 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-08-08 15:38:38 -0500
commita236ea2ad383387255621fc8eaddc3c5d17f1e30 (patch)
treeecacdf1f8c9c02f545e06f8a430a145998fe11ea /src/widgets/qgroupbox.cpp
parent92b8aca467ad650f9b77a5b6a0f56c27ecbfe80a (diff)
parent47132557a4c58d4ad69bc2898bb2bd9c424b3b64 (diff)
downloadqt3-a236ea2ad383387255621fc8eaddc3c5d17f1e30.tar.gz
qt3-a236ea2ad383387255621fc8eaddc3c5d17f1e30.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'src/widgets/qgroupbox.cpp')
-rw-r--r--src/widgets/qgroupbox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/qgroupbox.cpp b/src/widgets/qgroupbox.cpp
index 6097ece..7ffcb2a 100644
--- a/src/widgets/qgroupbox.cpp
+++ b/src/widgets/qgroupbox.cpp
@@ -364,8 +364,9 @@ void QGroupBox::paintEvent( QPaintEvent *event )
if(va & AlignTop)
r.moveBy(0, fm.descent());
QColor pen( (QRgb) style().styleHint(QStyle::SH_GroupBox_TextLabelColor, this ) );
- if (!style().styleHint(QStyle::SH_UnderlineAccelerator, this))
+ if ((!style().styleHint(QStyle::SH_UnderlineAccelerator, this)) || ((style().styleHint(QStyle::SH_HideUnderlineAcceleratorWhenAltUp, this)) && (!style().acceleratorsShown()))) {
va |= NoAccel;
+ }
style().drawItem( &paint, r, ShowPrefix | AlignHCenter | va, colorGroup(),
isEnabled(), 0, str, -1, ownPalette() ? 0 : &pen );
paint.setClipRegion( event->region().subtract( r ) ); // clip everything but title