summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/korganizer
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:59:01 -0600
commit716a5de8870d7c02bb4d0aed72f30291b17b763a (patch)
tree29e58b213ead28151ccf7eb33d12c968ea844120 /kontact/plugins/korganizer
parent0e00c0a86a4c9d7e80c7b66d91940cc7dcb79f78 (diff)
downloadtdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.tar.gz
tdepim-716a5de8870d7c02bb4d0aed72f30291b17b763a.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kontact/plugins/korganizer')
-rw-r--r--kontact/plugins/korganizer/korganizerplugin.cpp10
-rw-r--r--kontact/plugins/korganizer/summarywidget.cpp10
-rw-r--r--kontact/plugins/korganizer/todoplugin.cpp10
-rw-r--r--kontact/plugins/korganizer/todosummarywidget.cpp2
4 files changed, 16 insertions, 16 deletions
diff --git a/kontact/plugins/korganizer/korganizerplugin.cpp b/kontact/plugins/korganizer/korganizerplugin.cpp
index 6d39d413a..2262dcef3 100644
--- a/kontact/plugins/korganizer/korganizerplugin.cpp
+++ b/kontact/plugins/korganizer/korganizerplugin.cpp
@@ -195,7 +195,7 @@ void KOrganizerPlugin::processDropEvent( TQDropEvent *event )
KCal::Incidence *i = incidences.first();
TQString summary;
if ( dynamic_cast<KCal::Journal*>( i ) )
- summary = i18n( "Note: %1" ).tqarg( i->summary() );
+ summary = i18n( "Note: %1" ).arg( i->summary() );
else
summary = i->summary();
interface()->openEventEditor( summary, i->description(), TQString() );
@@ -219,22 +219,22 @@ void KOrganizerPlugin::processDropEvent( TQDropEvent *event )
i18n("Drops of multiple mails are not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
- TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").tqarg( mail.from() )
- .tqarg( mail.to() ).tqarg( mail.subject() );
+ TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() )
+ .arg( mail.to() ).arg( mail.subject() );
KTempFile tf;
tf.setAutoDelete( true );
TQString uri = TQString::fromLatin1("kmail:") + TQString::number( mail.serialNumber() );
tf.file()->writeBlock( event->encodedData( "message/rfc822" ) );
tf.close();
- interface()->openEventEditor( i18n("Mail: %1").tqarg( mail.subject() ), txt,
+ interface()->openEventEditor( i18n("Mail: %1").arg( mail.subject() ), txt,
uri, tf.name(), TQStringList(), "message/rfc822" );
}
return;
}
KMessageBox::sorry( core(), i18n("Cannot handle drop events of type '%1'.")
- .tqarg( event->format() ) );
+ .arg( event->format() ) );
}
bool KOrganizerPlugin::queryClose() const {
diff --git a/kontact/plugins/korganizer/summarywidget.cpp b/kontact/plugins/korganizer/summarywidget.cpp
index c4c4dad9c..ee8eefdcd 100644
--- a/kontact/plugins/korganizer/summarywidget.cpp
+++ b/kontact/plugins/korganizer/summarywidget.cpp
@@ -191,14 +191,14 @@ void SummaryWidget::updateView()
// Fill Event Summary Field
TQString newtext = ev->summary();
if ( ev->isMultiDay() && !ev->doesFloat() ) {
- newtext.append( TQString(" (%1/%2)").tqarg( dayof ).tqarg( span ) );
+ newtext.append( TQString(" (%1/%2)").arg( dayof ).arg( span ) );
}
KURLLabel *urlLabel = new KURLLabel( this );
urlLabel->setText( newtext );
urlLabel->setURL( ev->uid() );
urlLabel->installEventFilter( this );
- urlLabel->setAlignment( urlLabel->tqalignment() | TQt::WordBreak );
+ urlLabel->setAlignment( urlLabel->alignment() | TQt::WordBreak );
mLayout->addWidget( urlLabel, counter, 2 );
mLabels.append( urlLabel );
@@ -225,8 +225,8 @@ void SummaryWidget::updateView()
}
}
datestr = i18n( "Time from - to", "%1 - %2" )
- .tqarg( KGlobal::locale()->formatTime( sST ) )
- .tqarg( KGlobal::locale()->formatTime( sET ) );
+ .arg( KGlobal::locale()->formatTime( sST ) )
+ .arg( KGlobal::locale()->formatTime( sET ) );
label = new TQLabel( datestr, this );
label->setAlignment( AlignLeft | AlignVCenter );
mLayout->addWidget( label, counter, 3 );
@@ -288,7 +288,7 @@ bool SummaryWidget::eventFilter( TQObject *obj, TQEvent* e )
if ( obj->inherits( "KURLLabel" ) ) {
KURLLabel* label = static_cast<KURLLabel*>( TQT_TQWIDGET(obj) );
if ( e->type() == TQEvent::Enter )
- emit message( i18n( "Edit Appointment: \"%1\"" ).tqarg( label->text() ) );
+ emit message( i18n( "Edit Appointment: \"%1\"" ).arg( label->text() ) );
if ( e->type() == TQEvent::Leave )
emit message( TQString() );
}
diff --git a/kontact/plugins/korganizer/todoplugin.cpp b/kontact/plugins/korganizer/todoplugin.cpp
index c17b153f5..e3ff2ba8f 100644
--- a/kontact/plugins/korganizer/todoplugin.cpp
+++ b/kontact/plugins/korganizer/todoplugin.cpp
@@ -187,7 +187,7 @@ void TodoPlugin::processDropEvent( TQDropEvent *event )
KCal::Incidence *i = incidences.first();
TQString summary;
if ( dynamic_cast<KCal::Journal*>( i ) )
- summary = i18n( "Note: %1" ).tqarg( i->summary() );
+ summary = i18n( "Note: %1" ).arg( i->summary() );
else
summary = i->summary();
interface()->openTodoEditor( summary, i->description(), TQString() );
@@ -210,8 +210,8 @@ void TodoPlugin::processDropEvent( TQDropEvent *event )
i18n("Drops of multiple mails are not supported." ) );
} else {
KPIM::MailSummary mail = mails.first();
- TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").tqarg( mail.from() )
- .tqarg( mail.to() ).tqarg( mail.subject() );
+ TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() )
+ .arg( mail.to() ).arg( mail.subject() );
KTempFile tf;
tf.setAutoDelete( true );
@@ -219,14 +219,14 @@ void TodoPlugin::processDropEvent( TQDropEvent *event )
mail.messageId();
tf.file()->writeBlock( event->encodedData( "message/rfc822" ) );
tf.close();
- interface()->openTodoEditor( i18n("Mail: %1").tqarg( mail.subject() ),
+ interface()->openTodoEditor( i18n("Mail: %1").arg( mail.subject() ),
txt, uri, tf.name(), TQStringList(), "message/rfc822", false );
}
return;
}
KMessageBox::sorry( core(), i18n("Cannot handle drop events of type '%1'.")
- .tqarg( event->format() ) );
+ .arg( event->format() ) );
}
#include "todoplugin.moc"
diff --git a/kontact/plugins/korganizer/todosummarywidget.cpp b/kontact/plugins/korganizer/todosummarywidget.cpp
index ed21f40bf..7171e539f 100644
--- a/kontact/plugins/korganizer/todosummarywidget.cpp
+++ b/kontact/plugins/korganizer/todosummarywidget.cpp
@@ -253,7 +253,7 @@ bool TodoSummaryWidget::eventFilter( TQObject *obj, TQEvent* e )
if ( obj->inherits( "KURLLabel" ) ) {
KURLLabel* label = static_cast<KURLLabel*>( TQT_TQWIDGET(obj) );
if ( e->type() == TQEvent::Enter )
- emit message( i18n( "Edit To-do: \"%1\"" ).tqarg( label->text() ) );
+ emit message( i18n( "Edit To-do: \"%1\"" ).arg( label->text() ) );
if ( e->type() == TQEvent::Leave )
emit message( TQString() );
}