diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:01:17 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:01:17 -0600 |
| commit | 2a411f53a04f815770074b633e026a141f6fa875 (patch) | |
| tree | 0408d7c0976f54b4b6d13e8fbf5d91a82cb4ff92 /src/popupmenu.cpp | |
| parent | ae6cafee5339716bd01aa6c66aa4f366bdc5d43b (diff) | |
| download | basket-2a411f53a04f815770074b633e026a141f6fa875.tar.gz basket-2a411f53a04f815770074b633e026a141f6fa875.zip | |
Rename old tq methods that no longer need a unique name
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(); |
