summaryrefslogtreecommitdiffstats
path: root/konsolekalendar/konsolekalendarchange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsolekalendar/konsolekalendarchange.cpp')
-rw-r--r--konsolekalendar/konsolekalendarchange.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/konsolekalendar/konsolekalendarchange.cpp b/konsolekalendar/konsolekalendarchange.cpp
index 067c05e2..5ba9d276 100644
--- a/konsolekalendar/konsolekalendarchange.cpp
+++ b/konsolekalendar/konsolekalendarchange.cpp
@@ -62,11 +62,11 @@ bool KonsoleKalendarChange::changeEvent()
Event *event = m_variables->getCalendar()->event( m_variables->getUID() );
if ( event ) {
if ( m_variables->isDryRun() ) {
- cout << i18n( "Change Event <Dry Run>:" ).local8Bit()
+ cout << i18n( "Change Event <Dry Run>:" ).local8Bit().data()
<< endl;
printSpecs( event );
- cout << i18n( "To Event <Dry Run>:" ).local8Bit()
+ cout << i18n( "To Event <Dry Run>:" ).local8Bit().data()
<< endl;
printSpecs();
} else {
@@ -75,11 +75,11 @@ bool KonsoleKalendarChange::changeEvent()
<< endl;
if ( m_variables->isVerbose() ) {
- cout << i18n( "Change Event <Verbose>:" ).local8Bit()
+ cout << i18n( "Change Event <Verbose>:" ).local8Bit().data()
<< endl;
printSpecs( event );
- cout << i18n( "To Event <Dry Run>:" ).local8Bit()
+ cout << i18n( "To Event <Dry Run>:" ).local8Bit().data()
<< endl;
printSpecs();
}
@@ -108,14 +108,14 @@ bool KonsoleKalendarChange::changeEvent()
if ( m_variables->getCalendar()->addEvent( event ) ) {
cout << i18n( "Success: \"%1\" changed" )
- .arg( event->summary() ).local8Bit()
+ .tqarg( event->summary() ).local8Bit().data()
<< endl;
m_variables->getCalendar()->save();
status = true;
} else {
cout << i18n( "Failure: \"%1\" not changed" )
- .arg( event->summary() ).local8Bit()
+ .tqarg( event->summary() ).local8Bit().data()
<< endl;
}
}
@@ -128,53 +128,53 @@ bool KonsoleKalendarChange::changeEvent()
void KonsoleKalendarChange::printSpecs( Event *event )
{
cout << i18n( " UID: %1" ).
- arg( event->uid() ).local8Bit()
+ tqarg( event->uid() ).local8Bit().data()
<< endl;
cout << i18n( " What: %1" ).
- arg( event->summary() ).local8Bit()
+ tqarg( event->summary() ).local8Bit().data()
<< endl;
cout << i18n( " Begin: %1" ).
- arg( event->dtStart().toString( TQt::TextDate ) ).local8Bit()
+ tqarg( event->dtStart().toString( Qt::TextDate ) ).local8Bit().data()
<< endl;
cout << i18n( " End: %1" ).
- arg( event->dtEnd().toString( TQt::TextDate ) ).local8Bit()
+ tqarg( event->dtEnd().toString( Qt::TextDate ) ).local8Bit().data()
<< endl;
cout << i18n( " Desc: %1" ).
- arg( event->description() ).local8Bit()
+ tqarg( event->description() ).local8Bit().data()
<< endl;
cout << i18n( " Location: %1" ).
- arg( event->location() ).local8Bit()
+ tqarg( event->location() ).local8Bit().data()
<< endl;
}
void KonsoleKalendarChange::printSpecs()
{
cout << i18n( " UID: %1" ).
- arg( m_variables->getUID() ).local8Bit()
+ tqarg( m_variables->getUID() ).local8Bit().data()
<< endl;
cout << i18n( " What: %1" ).
- arg( m_variables->getSummary() ).local8Bit()
+ tqarg( m_variables->getSummary() ).local8Bit().data()
<< endl;
cout << i18n( " Begin: %1" ).
- arg( m_variables->getStartDateTime().toString( TQt::TextDate ) ).local8Bit()
+ tqarg( m_variables->getStartDateTime().toString( Qt::TextDate ) ).local8Bit().data()
<< endl;
cout << i18n( " End: %1" ).
- arg( m_variables->getEndDateTime().toString( TQt::TextDate ) ).local8Bit()
+ tqarg( m_variables->getEndDateTime().toString( Qt::TextDate ) ).local8Bit().data()
<< endl;
cout << i18n( " Desc: %1" ).
- arg( m_variables->getDescription() ).local8Bit()
+ tqarg( m_variables->getDescription() ).local8Bit().data()
<< endl;
cout << i18n( " Location: %1" ).
- arg( m_variables->getLocation() ).local8Bit()
+ tqarg( m_variables->getLocation() ).local8Bit().data()
<< endl;
}