diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:29:20 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:29:20 -0600 |
commit | 882bcd26b3d60be72ea2b35921969a9850c52db9 (patch) | |
tree | 8d0a6902c5de4632c4e73e35c4d86404fa75f470 /src/popupmenu.cpp | |
parent | c82058b2b64334c10d7e547cb81ac64efe09f516 (diff) | |
download | basket-882bcd26b3d60be72ea2b35921969a9850c52db9.tar.gz basket-882bcd26b3d60be72ea2b35921969a9850c52db9.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/popupmenu.cpp')
-rw-r--r-- | src/popupmenu.cpp | 6 |
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(); |