From 2a411f53a04f815770074b633e026a141f6fa875 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:01:17 -0600 Subject: Rename old tq methods that no longer need a unique name --- src/popupmenu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/popupmenu.cpp') 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(); -- cgit v1.2.1