summaryrefslogtreecommitdiffstats
path: root/src/widgets/qheader.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-28 15:51:58 -0500
commitfe7969ef886d7287fa959929ddd33fbad8407884 (patch)
tree589aacc109d27561a5188bb46bce27c78bad8f5b /src/widgets/qheader.cpp
parentdba8a853b65e5707e48450e5085e0ff0513b4203 (diff)
downloadtqt3-fe7969ef886d7287fa959929ddd33fbad8407884.tar.gz
tqt3-fe7969ef886d7287fa959929ddd33fbad8407884.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qheader.cpp')
-rw-r--r--src/widgets/qheader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/widgets/qheader.cpp b/src/widgets/qheader.cpp
index b2c0e0e40..29c0306bb 100644
--- a/src/widgets/qheader.cpp
+++ b/src/widgets/qheader.cpp
@@ -602,10 +602,10 @@ void TQHeader::keyPressEvent( TQKeyEvent *e )
repaint( sRect( handleIdx ) );
emit pressed( d->i2s[i] );
}
- } else if ( orientation() == Horizontal &&
- (e->key() == Key_Right || e->key() == Key_Left)
- || orientation() == Vertical &&
- (e->key() == Key_Up || e->key() == Key_Down) ) {
+ } else if ( ( orientation() == Horizontal &&
+ (e->key() == Key_Right || e->key() == Key_Left) )
+ || ( orientation() == Vertical &&
+ (e->key() == Key_Up || e->key() == Key_Down) ) ) {
int dir = e->key() == Key_Right || e->key() == Key_Down ? 1 : -1;
int s = d->i2s[i];
if ( e->state() & ControlButton && d->resize[s] ) {
@@ -1638,8 +1638,8 @@ void TQHeader::paintEvent( TQPaintEvent *e )
style().drawPrimitive( TQStyle::PE_FocusRect, &p, fr,
colorGroup() );
}
- if ( orient == Horizontal && r. right() >= e->rect().right() ||
- orient == Vertical && r. bottom() >= e->rect().bottom() )
+ if ( ( orient == Horizontal && r. right() >= e->rect().right() ) ||
+ ( orient == Vertical && r. bottom() >= e->rect().bottom() ) )
return;
}
}