From 50245e3df9d78cdd42e9551fb32a3ea032434b0e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 14 Dec 2023 21:19:09 +0900 Subject: Remove various '#define' strings - part 6 Signed-off-by: Michele Calgaro (cherry picked from commit 7b0920cd4180823f7a42350d1bdb914d697f4b9c) --- src/likeback.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/likeback.cpp') diff --git a/src/likeback.cpp b/src/likeback.cpp index e1ba649..b081031 100644 --- a/src/likeback.cpp +++ b/src/likeback.cpp @@ -125,7 +125,7 @@ void LikeBackBar::autoMove() { static TQWidget *lastWindow = 0; - TQWidget *window = TQT_TQWIDGET(kapp->activeWindow()); + TQWidget *window = kapp->activeWindow(); // When a Kicker applet has the focus, like the Commandline TQLineEdit, // the systemtray icon indicates to be the current window and the LikeBack is shown next to the system tray icon. // It's obviously bad ;-) : @@ -491,7 +491,7 @@ TQString LikeBack::activeWindowPath() { // Compute the window hierarchy (from the latest to the oldest): TQStringList windowNames; - TQWidget *window = TQT_TQWIDGET(kapp->activeWindow()); + TQWidget *window = kapp->activeWindow(); while (window) { TQString name = window->name(); // Append the class name to the window name if it is unnamed: @@ -559,7 +559,7 @@ void LikeBack::askEmailAddress() "

" + i18n("Please provide your email address.") + "

" + "

" + i18n("It will only be used to contact you back if more information is needed about your comments, ask you how to reproduce the bugs you report, send bug corrections for you to test, etc.") + "

" + "

" + i18n("The email address is optional. If you do not provide any, your comments will be sent anonymously.") + "

", - currentEmailAddress, &ok, TQT_TQWIDGET(kapp->activeWindow()), /*name=*/(const char*)0, &emailValidator); + currentEmailAddress, &ok, kapp->activeWindow(), /*name=*/(const char*)0, &emailValidator); enableBar(); if (ok) @@ -632,7 +632,7 @@ void LikeBack::fetchUserEmail() LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialComment, const TQString &windowPath, const TQString &context, LikeBack *likeBack) : KDialogBase(KDialogBase::Swallow, i18n("Send a Comment to Developers"), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Default, - KDialogBase::Ok, TQT_TQWIDGET(kapp->activeWindow()), /*name=*/"_likeback_feedback_window_", /*modal=*/true, /*separator=*/true) + KDialogBase::Ok, kapp->activeWindow(), /*name=*/"_likeback_feedback_window_", /*modal=*/true, /*separator=*/true) , m_likeBack(likeBack) , m_windowPath(windowPath) , m_context(context) -- cgit v1.2.1