From 882bcd26b3d60be72ea2b35921969a9850c52db9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:29:20 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/systemtray.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/systemtray.cpp') diff --git a/src/systemtray.cpp b/src/systemtray.cpp index 7700f28..fdb7f40 100644 --- a/src/systemtray.cpp +++ b/src/systemtray.cpp @@ -121,7 +121,7 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu) // kapp->widgetAt(g + TQPoint(tw-1, 0)) != this || // kapp->widgetAt(g + TQPoint(0, th-1)) != this || // kapp->widgetAt(g + TQPoint(tw-1, th-1)) != this) { - int systrayManagerWinId = tqtopLevelWidget()->winId(); + int systrayManagerWinId = topLevelWidget()->winId(); KWin::forceActiveWindow(systrayManagerWinId); kapp->processEvents(); // Because without it the systrayManager is raised only after the messageBox is displayed // KWin::activateWindow(systrayManagerWinId); @@ -139,7 +139,7 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu) TQString message = i18n( "

Closing the main window will keep %1 running in the system tray. " "Use Quit from the Basket menu to quit the application.

" - ).tqarg(KGlobal::instance()->aboutData()->programName()); + ).arg(KGlobal::instance()->aboutData()->programName()); // We are sure the systray icon is visible: ouf! if (useSystray) { // Compute size and position of the pixmap to be grabbed: @@ -161,10 +161,10 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu) const int IMAGE_BORDER = 1; int ax = g.x() - x - CIRCLE_MARGINS - 1; int ay = g.y() - y - CIRCLE_MARGINS - 1; - painter.setPen( TQPen(KApplication::tqpalette().active().dark(), CIRCLE_WIDTH) ); + painter.setPen( TQPen(KApplication::palette().active().dark(), CIRCLE_WIDTH) ); painter.drawArc(ax + SHADOW_OFFSET, ay + SHADOW_OFFSET, tw + 2*CIRCLE_MARGINS, th + 2*CIRCLE_MARGINS, 0, 16*360); - painter.setPen( TQPen(TQt::red/*KApplication::tqpalette().active().highlight()*/, CIRCLE_WIDTH) ); + painter.setPen( TQPen(TQt::red/*KApplication::palette().active().highlight()*/, CIRCLE_WIDTH) ); painter.drawArc(ax, ay, tw + 2*CIRCLE_MARGINS, th + 2*CIRCLE_MARGINS, 0, 16*360); #if 1 // Draw the pixmap over the screenshot in case a window hide the icon: @@ -174,7 +174,7 @@ void KSystemTray2::displayCloseMessage(TQString fileMenu) // Then, we add a border arround the image to make it more visible: TQPixmap finalShot(w + 2*IMAGE_BORDER, h + 2*IMAGE_BORDER); - finalShot.fill(KApplication::tqpalette().active().foreground()); + finalShot.fill(KApplication::palette().active().foreground()); painter.begin(&finalShot); painter.drawPixmap(IMAGE_BORDER, IMAGE_BORDER, shot); painter.end(); @@ -433,7 +433,7 @@ void SystemTray::updateToolTipDelayed() TQString tip = "

" + ( basket->isLocked() ? kapp->makeStdCaption(i18n("%1 (Locked)")) : kapp->makeStdCaption( "%1") ) - .tqarg(Tools::textToHTMLWithoutP(basket->basketName())); + .arg(Tools::textToHTMLWithoutP(basket->basketName())); TQToolTip::add(this, tip); } -- cgit v1.2.1