diff options
Diffstat (limited to 'src/systemtray.cpp')
-rw-r--r-- | src/systemtray.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/systemtray.cpp b/src/systemtray.cpp index ba1f17d..99a87fd 100644 --- a/src/systemtray.cpp +++ b/src/systemtray.cpp @@ -107,8 +107,8 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu) // out of screen. if (useSystray) { TQRect deskRect(0, 0, desktopWidth, desktopHeight); - if ( !deskRect.tqcontains(g.x(), g.y()) || - !deskRect.tqcontains(g.x() + tw, g.y() + th) ) + if ( !deskRect.contains(g.x(), g.y()) || + !deskRect.contains(g.x() + tw, g.y() + th) ) useSystray = false; } @@ -297,7 +297,7 @@ void SystemTray::mouseReleaseEvent(TQMouseEvent *event) { m_canDrag = false; if (event->button() == Qt::LeftButton) // Show / hide main window - if ( TQT_TQRECT_OBJECT(rect()).tqcontains(event->pos()) ) { // Accept only if released in systemTray + if ( TQT_TQRECT_OBJECT(rect()).contains(event->pos()) ) { // Accept only if released in systemTray toggleActive(); emit showPart(); event->accept(); @@ -350,7 +350,7 @@ void SystemTray::dropEvent(TQDropEvent *event) /* * This function copies the entirety of src into dest, starting in - * dest at x and y. This function exists because I was unable to tqfind + * dest at x and y. This function exists because I was unable to find * a function like it in either TQImage or kdefx */ static bool copyImage(TQImage &dest, TQImage &src, int x, int y) |