summaryrefslogtreecommitdiffstats
path: root/src/widgets/qgroupbox.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-07 01:31:43 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-07 01:31:43 -0500
commit58451e41d9ecfb405f5dd2718444ac78e8d51c8b (patch)
tree1b52d26a8b3ffe81516df83896285ebfa843d849 /src/widgets/qgroupbox.cpp
parent0008bc5bcd95694b38b0d0322aac2ea6fdb21298 (diff)
downloadqt3-58451e41d9ecfb405f5dd2718444ac78e8d51c8b.tar.gz
qt3-58451e41d9ecfb405f5dd2718444ac78e8d51c8b.zip
Extend TQStyle API further and bump Qt version number
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