summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorfreebusy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorfreebusy.cpp')
-rw-r--r--korganizer/koeditorfreebusy.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp
index 2fc7b30f..d19c2c90 100644
--- a/korganizer/koeditorfreebusy.cpp
+++ b/korganizer/koeditorfreebusy.cpp
@@ -23,7 +23,7 @@
*/
#include <tqtooltip.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlabel.h>
#include <tqcombobox.h>
#include <tqpushbutton.h>
@@ -202,7 +202,7 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb )
// No free/busy information
//debug only start
// int ii ;
- // TQDateTime cur = TQDateTime::tqcurrentDateTime();
+ // TQDateTime cur = TQDateTime::currentDateTime();
// for( ii = 0; ii < 10 ;++ii ) {
// KDGanttViewTaskItem* newSubItem = new KDGanttViewTaskItem( this );
// cur = cur.addSecs( 7200 );
@@ -310,16 +310,16 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *parent,
mGanttView->setShowHeaderPopupMenu( false, false, false, false, false, false );
// Initially, show 15 days back and forth
// set start to even hours, i.e. to 12:AM 0 Min 0 Sec
- TQDateTime horizonStart = TQDateTime( TQDateTime::tqcurrentDateTime()
+ TQDateTime horizonStart = TQDateTime( TQDateTime::currentDateTime()
.addDays( -15 ).date() );
- TQDateTime horizonEnd = TQDateTime::tqcurrentDateTime().addDays( 15 );
+ TQDateTime horizonEnd = TQDateTime::currentDateTime().addDays( 15 );
mGanttView->setHorizonStart( horizonStart );
mGanttView->setHorizonEnd( horizonEnd );
mGanttView->setCalendarMode( true );
//mGanttView->setDisplaySubitemsAsGroup( true );
mGanttView->setShowLegendButton( false );
// Initially, center to current date
- mGanttView->centerTimelineAfterShow( TQDateTime::tqcurrentDateTime() );
+ mGanttView->centerTimelineAfterShow( TQDateTime::currentDateTime() );
if ( KGlobal::locale()->use12Clock() )
mGanttView->setHourFormat( KDGanttView::Hour_12 );
else
@@ -580,10 +580,10 @@ bool KOEditorFreeBusy::findFreeSlot( TQDateTime &dtFrom, TQDateTime &dtTo )
// Make sure that we never suggest a date in the past, even if the
// user originally scheduled the meeting to be in the past.
- if( tryFrom < TQDateTime::tqcurrentDateTime() ) {
+ if( tryFrom < TQDateTime::currentDateTime() ) {
// The slot to look for is at least partially in the past.
int secs = tryFrom.secsTo( tryTo );
- tryFrom = TQDateTime::tqcurrentDateTime();
+ tryFrom = TQDateTime::currentDateTime();
tryTo = tryFrom.addSecs( secs );
}
@@ -699,7 +699,7 @@ void KOEditorFreeBusy::updateStatusSummary()
mStatusSummaryLabel->setText(
i18n( "Of the %1 participants, %2 have accepted, %3"
" have tentatively accepted, and %4 have declined.")
- .tqarg( total ).tqarg( accepted ).tqarg( tentative ).tqarg( declined ) );
+ .arg( total ).arg( accepted ).arg( tentative ).arg( declined ) );
} else {
mStatusSummaryLabel->hide();
}
@@ -783,7 +783,7 @@ void KOEditorFreeBusy::writeEvent(KCal::Event * event)
bool skip = false;
if ( attendee->email().endsWith( "example.net" ) ) {
if ( KMessageBox::warningYesNo( this, i18n("%1 does not look like a valid email address. "
- "Are you sure you want to invite this participant?").tqarg( attendee->email() ),
+ "Are you sure you want to invite this participant?").arg( attendee->email() ),
i18n("Invalid email address") ) != KMessageBox::Yes ) {
skip = true;
}
@@ -852,8 +852,8 @@ void KOEditorFreeBusy::clearSelection() const
KDGanttViewItem *item = mGanttView->selectedItem();
if ( item )
mGanttView->setSelected( item, false );
- mGanttView->tqrepaint();
- item->tqrepaint();
+ mGanttView->repaint();
+ item->repaint();
}
void KOEditorFreeBusy::setSelected( int index )
@@ -890,7 +890,7 @@ void KOEditorFreeBusy::changeStatusForMe(KCal::Attendee::PartStat status)
{
for ( TQStringList::ConstIterator it2( myEmails.begin() ), end( myEmails.end() ); it2 != end; ++it2 ) {
if ( item->attendee()->email() == *it2 ) {
- item->attendee()->setqStatus( status );
+ item->attendee()->seStatus( status );
item->updateItem();
}
}
@@ -912,7 +912,7 @@ void KOEditorFreeBusy::showAttendeeStatusMenu()
popup.setItemChecked( currentAttendee()->status(), true );
int status = popup.exec( TQCursor::pos() );
if ( status >= 0 ) {
- currentAttendee()->setqStatus( (Attendee::PartStat)status );
+ currentAttendee()->seStatus( (Attendee::PartStat)status );
updateCurrentItem();
updateAttendeeInput();
}