summaryrefslogtreecommitdiffstats
path: root/src/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/popupmenu.cpp')
-rw-r--r--src/popupmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/popupmenu.cpp b/src/popupmenu.cpp
index 68085f3..403d475 100644
--- a/src/popupmenu.cpp
+++ b/src/popupmenu.cpp
@@ -43,7 +43,7 @@
void PopupMenu::execAtRectCenter(TQPopupMenu &menu, const TQRect &rect)
{
// Compute point where to popup the menu that should be centered :
- TQSize menuSize = menu.tqsizeHint();
+ TQSize menuSize = menu.sizeHint();
TQSize menuHalfSize = menuSize / 2;
TQPoint point = rect.center() - TQPoint(menuHalfSize.width(), menuHalfSize.height());
@@ -66,7 +66,7 @@ void PopupMenu::execAtRectCenter(TQPopupMenu &menu, const TQRect &rect)
void PopupMenu::execAtRectBottom(TQPopupMenu &menu, const TQRect &rect, bool centered)
{
- TQSize menuSize = menu.tqsizeHint() - TQSize(1, 1); // A size is [1..n] => We want two lengths that are [0..(n-1)]
+ TQSize menuSize = menu.sizeHint() - TQSize(1, 1); // A size is [1..n] => We want two lengths that are [0..(n-1)]
int desktopWidth = kapp->desktop()->width(); // to be compared/added/substracted with TQRects/TQPoints...
int desktopHeight = kapp->desktop()->height();
@@ -108,7 +108,7 @@ void PopupMenu::execAtRectBottom(TQPopupMenu &menu, const TQRect &rect, bool cen
void PopupMenu::execAtRectRight(TQPopupMenu &menu, const TQRect &rect, bool centered)
{
- TQSize menuSize = menu.tqsizeHint() - TQSize(1, 1); // A size is [1..n] => We want two lengths that are [0..(n-1)]
+ TQSize menuSize = menu.sizeHint() - TQSize(1, 1); // A size is [1..n] => We want two lengths that are [0..(n-1)]
int desktopWidth = kapp->desktop()->width(); // to be compared/added/substracted with TQRects/TQPoints...
int desktopHeight = kapp->desktop()->height();