summaryrefslogtreecommitdiffstats
path: root/src/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/popupmenu.cpp')
-rw-r--r--src/popupmenu.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/popupmenu.cpp b/src/popupmenu.cpp
index fe2d136..6d0b52d 100644
--- a/src/popupmenu.cpp
+++ b/src/popupmenu.cpp
@@ -49,8 +49,8 @@ void PopupMenu::execAtRectCenter(TQPopupMenu &menu, const TQRect &rect)
// Very strange : menu.exec(point) do that clipping (but not when exec() by mouse !!! ) :
// If menu is partially out of the screen, move it :
-/* int desktopWidth = kapp->desktop()->width();
- int desktopHeight = kapp->desktop()->height();
+/* int desktopWidth = tdeApp->desktop()->width();
+ int desktopHeight = tdeApp->desktop()->height();
if (point.x() + menuSize.width() > desktopWidth) point.setX(desktopWidth - menuSize.width());
if (point.y() + menuSize.height() - 2 > desktopHeight) point.setY(desktopHeight - menuSize.height() + 2);
if (point.x() < 0) point.setX(0);
@@ -67,14 +67,14 @@ void PopupMenu::execAtRectCenter(TQPopupMenu &menu, const TQRect &rect)
void PopupMenu::execAtRectBottom(TQPopupMenu &menu, const TQRect &rect, bool centered)
{
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();
+ int desktopWidth = tdeApp->desktop()->width(); // to be compared/added/substracted with TQRects/TQPoints...
+ int desktopHeight = tdeApp->desktop()->height();
/** Paint the rect on the screen (desktop).
* For test purpose only (to be sure the passed rectangle is right).
* Comment this (and the qpainter and qpen includes) for a non-debug version.
*/
- /*TQPainter paint(kapp->desktop(), kapp->desktop(), true);
+ /*TQPainter paint(tdeApp->desktop(), tdeApp->desktop(), true);
paint.setPen( TQPen(TQt::black, 1) );
paint.drawRect(rect);
paint.end();*/
@@ -109,14 +109,14 @@ void PopupMenu::execAtRectBottom(TQPopupMenu &menu, const TQRect &rect, bool cen
void PopupMenu::execAtRectRight(TQPopupMenu &menu, const TQRect &rect, bool centered)
{
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();
+ int desktopWidth = tdeApp->desktop()->width(); // to be compared/added/substracted with TQRects/TQPoints...
+ int desktopHeight = tdeApp->desktop()->height();
/** Paint the rect on the screen (desktop).
* For test purpose only (to be sure the passed rectangle is right).
* Comment this (and the qpainter and qpen includes) for a non-debug version.
*/
- /*TQPainter paint(kapp->desktop(), kapp->desktop(), true);
+ /*TQPainter paint(tdeApp->desktop(), tdeApp->desktop(), true);
paint.setPen( TQPen(TQt::black, 1) );
paint.drawRect(rect);
paint.end();*/