diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-08-08 15:38:38 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-08-08 15:38:38 -0500 |
commit | a236ea2ad383387255621fc8eaddc3c5d17f1e30 (patch) | |
tree | ecacdf1f8c9c02f545e06f8a430a145998fe11ea /src/widgets/qgroupbox.cpp | |
parent | 92b8aca467ad650f9b77a5b6a0f56c27ecbfe80a (diff) | |
parent | 47132557a4c58d4ad69bc2898bb2bd9c424b3b64 (diff) | |
download | qt3-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.cpp | 3 |
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 |