summaryrefslogtreecommitdiffstats
path: root/src/widgets/qpopupmenu.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/qpopupmenu.cpp
parentdba8a853b65e5707e48450e5085e0ff0513b4203 (diff)
downloadtqt3-fe7969ef886d7287fa959929ddd33fbad8407884.tar.gz
tqt3-fe7969ef886d7287fa959929ddd33fbad8407884.zip
Automated update from Qt3
Diffstat (limited to 'src/widgets/qpopupmenu.cpp')
-rw-r--r--src/widgets/qpopupmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/qpopupmenu.cpp b/src/widgets/qpopupmenu.cpp
index 76605be88..c52878679 100644
--- a/src/widgets/qpopupmenu.cpp
+++ b/src/widgets/qpopupmenu.cpp
@@ -652,19 +652,19 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
int hGuess = tqApp->reverseLayout() ? TQEffects::LeftScroll : TQEffects::RightScroll;
int vGuess = TQEffects::DownScroll;
if ( tqApp->reverseLayout() ) {
- if ( snapToMouse && ( x + w/2 > mouse.x() ) ||
+ if ( ( snapToMouse && ( x + w/2 > mouse.x() ) ) ||
( parentMenu && parentMenu->isPopupMenu &&
( x + w/2 > ((TQPopupMenu*)parentMenu)->x() ) ) )
hGuess = TQEffects::RightScroll;
} else {
- if ( snapToMouse && ( x + w/2 < mouse.x() ) ||
+ if ( ( snapToMouse && ( x + w/2 < mouse.x() ) ) ||
( parentMenu && parentMenu->isPopupMenu &&
( x + w/2 < ((TQPopupMenu*)parentMenu)->x() ) ) )
hGuess = TQEffects::LeftScroll;
}
#ifndef QT_NO_MENUBAR
- if ( snapToMouse && ( y + h/2 < mouse.y() ) ||
+ if ( ( snapToMouse && ( y + h/2 < mouse.y() ) ) ||
( parentMenu && parentMenu->isMenuBar &&
( y + h/2 < ((TQMenuBar*)parentMenu)->mapToGlobal( ((TQMenuBar*)parentMenu)->pos() ).y() ) ) )
vGuess = TQEffects::UpScroll;