Replaced various '#define' with actual strings - part 4

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/101/head
Michele Calgaro 1 year ago
parent 3b66617d9d
commit 1d421717fb
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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<KMMainWidget *>( curWidget );
mainWidget = ::tqt_cast<KMMainWidget *>( curWidget );
if ( mainWidget )
break;
}

@ -3789,9 +3789,9 @@ void KMComposeWin::slotUndo()
TQWidget* fw = focusWidget();
if (!fw) return;
if ( ::tqqt_cast<KEdit*>(fw) )
if ( ::tqt_cast<KEdit*>(fw) )
static_cast<TQTextEdit*>(fw)->undo();
else if (::tqqt_cast<TQLineEdit*>(fw))
else if (::tqt_cast<TQLineEdit*>(fw))
static_cast<TQLineEdit*>(fw)->undo();
}
@ -3800,9 +3800,9 @@ void KMComposeWin::slotRedo()
TQWidget* fw = focusWidget();
if (!fw) return;
if (::tqqt_cast<KEdit*>(fw))
if (::tqt_cast<KEdit*>(fw))
static_cast<KEdit*>(fw)->redo();
else if (::tqqt_cast<TQLineEdit*>(fw))
else if (::tqt_cast<TQLineEdit*>(fw))
static_cast<TQLineEdit*>(fw)->redo();
}
@ -3812,9 +3812,9 @@ void KMComposeWin::slotCut()
TQWidget* fw = focusWidget();
if (!fw) return;
if (::tqqt_cast<KEdit*>(fw))
if (::tqt_cast<KEdit*>(fw))
static_cast<KEdit*>(fw)->cut();
else if (::tqqt_cast<TQLineEdit*>(fw))
else if (::tqt_cast<TQLineEdit*>(fw))
static_cast<TQLineEdit*>(fw)->cut();
}
@ -3888,9 +3888,9 @@ void KMComposeWin::slotMarkAll()
TQWidget* fw = focusWidget();
if (!fw) return;
if (::tqqt_cast<TQLineEdit*>(fw))
if (::tqt_cast<TQLineEdit*>(fw))
static_cast<TQLineEdit*>(fw)->selectAll();
else if (::tqqt_cast<KEdit*>(fw))
else if (::tqt_cast<KEdit*>(fw))
static_cast<KEdit*>(fw)->selectAll();
}

@ -1982,7 +1982,7 @@ void KMKernel::dumpDeadLetters()
return;
for ( TQPtrListIterator<TDEMainWindow> it(*TDEMainWindow::memberList) ; it.current() != 0; ++it ) {
if ( KMail::Composer * win = ::tqqt_cast<KMail::Composer*>( it.current() ) ) {
if ( KMail::Composer * win = ::tqt_cast<KMail::Composer*>( 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

@ -96,7 +96,7 @@ KMMainWin::~KMMainWin()
if ( !it.current()->isHidden() &&
it.current()->isTopLevel() &&
it.current() != this &&
::tqqt_cast<KMMainWin *>( it.current() )
::tqt_cast<KMMainWin *>( it.current() )
)
not_withdrawn++;
}

@ -188,7 +188,7 @@ SearchWindow::SearchWindow(KMMainWidget* w, const char* name,
if ( list )
object = list->first();
delete list;
if (!searchFolder && object && ::tqqt_cast<TQComboBox*>(object))
if (!searchFolder && object && ::tqt_cast<TQComboBox*>(object))
static_cast<TQComboBox*>(TQT_TQWIDGET(object))->setCurrentText(i18n("Subject"));
vbl->addWidget( mPatternEdit );

@ -81,7 +81,7 @@ KNoteConfigDlg::~KNoteConfigDlg()
void KNoteConfigDlg::slotUpdateCaption()
{
KNote *note = ::tqqt_cast<KNote *>(sender());
KNote *note = ::tqt_cast<KNote *>(sender());
if ( note )
setCaption( note->name() );
}

@ -123,7 +123,7 @@ void ResourceGroupwiseConfig::slotViewUserSettings()
if ( s )
{
KDialogBase * dialog = new KDialogBase( ::tqqt_cast<TQWidget*>(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) );
KDialogBase * dialog = new KDialogBase( ::tqt_cast<TQWidget*>(parent() ), "gwsettingswidget", true, i18n( "GroupWise Settings" ) );
// TQVBoxLayout * layout = new TQVBoxLayout( dialog );
GroupWiseSettingsWidget * settingsWidget = new GroupWiseSettingsWidget( dialog );
dialog->setMainWidget( settingsWidget );

Loading…
Cancel
Save