From 51d0291b086eede28d1f3b8c1f59affbf4109a99 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 26 Nov 2023 02:33:07 +0900 Subject: [PATCH] Replaced various '#define' with actual strings - part 4 Signed-off-by: Michele Calgaro (cherry picked from commit 1d421717fba9b8ea1ca121a58e1023b8a6a8871b) --- kmail/headerlistquicksearch.cpp | 2 +- kmail/kmcomposewin.cpp | 16 ++++++++-------- kmail/kmkernel.cpp | 2 +- kmail/kmmainwin.cpp | 2 +- kmail/searchwindow.cpp | 2 +- knotes/knoteconfigdlg.cpp | 2 +- .../groupwise/kcal_resourcegroupwiseconfig.cpp | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/kmail/headerlistquicksearch.cpp b/kmail/headerlistquicksearch.cpp index 86027863..210b91b9 100644 --- a/kmail/headerlistquicksearch.cpp +++ b/kmail/headerlistquicksearch.cpp @@ -117,7 +117,7 @@ bool HeaderListQuickSearch::eventFilter( TQObject *watched, TQEvent *event ) // Travel up the parents list until we find the main widget for ( TQWidget *curWidget = parentWidget(); curWidget; curWidget = curWidget->parentWidget() ) { - mainWidget = ::tqqt_cast( curWidget ); + mainWidget = ::tqt_cast( curWidget ); if ( mainWidget ) break; } diff --git a/kmail/kmcomposewin.cpp b/kmail/kmcomposewin.cpp index dc48dcbb..473d454f 100644 --- a/kmail/kmcomposewin.cpp +++ b/kmail/kmcomposewin.cpp @@ -3789,9 +3789,9 @@ void KMComposeWin::slotUndo() TQWidget* fw = focusWidget(); if (!fw) return; - if ( ::tqqt_cast(fw) ) + if ( ::tqt_cast(fw) ) static_cast(fw)->undo(); - else if (::tqqt_cast(fw)) + else if (::tqt_cast(fw)) static_cast(fw)->undo(); } @@ -3800,9 +3800,9 @@ void KMComposeWin::slotRedo() TQWidget* fw = focusWidget(); if (!fw) return; - if (::tqqt_cast(fw)) + if (::tqt_cast(fw)) static_cast(fw)->redo(); - else if (::tqqt_cast(fw)) + else if (::tqt_cast(fw)) static_cast(fw)->redo(); } @@ -3812,9 +3812,9 @@ void KMComposeWin::slotCut() TQWidget* fw = focusWidget(); if (!fw) return; - if (::tqqt_cast(fw)) + if (::tqt_cast(fw)) static_cast(fw)->cut(); - else if (::tqqt_cast(fw)) + else if (::tqt_cast(fw)) static_cast(fw)->cut(); } @@ -3888,9 +3888,9 @@ void KMComposeWin::slotMarkAll() TQWidget* fw = focusWidget(); if (!fw) return; - if (::tqqt_cast(fw)) + if (::tqt_cast(fw)) static_cast(fw)->selectAll(); - else if (::tqqt_cast(fw)) + else if (::tqt_cast(fw)) static_cast(fw)->selectAll(); } diff --git a/kmail/kmkernel.cpp b/kmail/kmkernel.cpp index cfb28ab2..473188e6 100644 --- a/kmail/kmkernel.cpp +++ b/kmail/kmkernel.cpp @@ -1982,7 +1982,7 @@ void KMKernel::dumpDeadLetters() return; for ( TQPtrListIterator it(*TDEMainWindow::memberList) ; it.current() != 0; ++it ) { - if ( KMail::Composer * win = ::tqqt_cast( it.current() ) ) { + if ( KMail::Composer * win = ::tqt_cast( it.current() ) ) { win->autoSaveMessage(); // saving the message has to be finished right here, we are called from a dtor, // therefore we have no chance to finish this later diff --git a/kmail/kmmainwin.cpp b/kmail/kmmainwin.cpp index bfc0be0c..cdd76a04 100644 --- a/kmail/kmmainwin.cpp +++ b/kmail/kmmainwin.cpp @@ -96,7 +96,7 @@ KMMainWin::~KMMainWin() if ( !it.current()->isHidden() && it.current()->isTopLevel() && it.current() != this && - ::tqqt_cast( it.current() ) + ::tqt_cast( it.current() ) ) not_withdrawn++; } diff --git a/kmail/searchwindow.cpp b/kmail/searchwindow.cpp index f5ecf155..94035059 100644 --- a/kmail/searchwindow.cpp +++ b/kmail/searchwindow.cpp @@ -188,7 +188,7 @@ SearchWindow::SearchWindow(KMMainWidget* w, const char* name, if ( list ) object = list->first(); delete list; - if (!searchFolder && object && ::tqqt_cast(object)) + if (!searchFolder && object && ::tqt_cast(object)) static_cast(TQT_TQWIDGET(object))->setCurrentText(i18n("Subject")); vbl->addWidget( mPatternEdit ); diff --git a/knotes/knoteconfigdlg.cpp b/knotes/knoteconfigdlg.cpp index bd388c38..60f7a539 100644 --- a/knotes/knoteconfigdlg.cpp +++ b/knotes/knoteconfigdlg.cpp @@ -81,7 +81,7 @@ KNoteConfigDlg::~KNoteConfigDlg() void KNoteConfigDlg::slotUpdateCaption() { - KNote *note = ::tqqt_cast(sender()); + KNote *note = ::tqt_cast(sender()); if ( note ) setCaption( note->name() ); } diff --git a/tderesources/groupwise/kcal_resourcegroupwiseconfig.cpp b/tderesources/groupwise/kcal_resourcegroupwiseconfig.cpp index cb9f4493..9371ef59 100644 --- a/tderesources/groupwise/kcal_resourcegroupwiseconfig.cpp +++ b/tderesources/groupwise/kcal_resourcegroupwiseconfig.cpp @@ -123,7 +123,7 @@ void ResourceGroupwiseConfig::slotViewUserSettings() if ( s ) { - KDialogBase * dialog = new KDialogBase( ::tqqt_cast(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) ); + KDialogBase * dialog = new KDialogBase( ::tqt_cast(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) ); // TQVBoxLayout * layout = new TQVBoxLayout( dialog ); GroupWiseSettingsWidget * settingsWidget = new GroupWiseSettingsWidget( dialog ); dialog->setMainWidget( settingsWidget );