From 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 13 Apr 2011 00:46:47 +0000 Subject: Initial conversion of kdepim to TQt This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- korganizer/koeditorfreebusy.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'korganizer/koeditorfreebusy.cpp') diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp index af8b0f5c..da7f36f0 100644 --- a/korganizer/koeditorfreebusy.cpp +++ b/korganizer/koeditorfreebusy.cpp @@ -18,8 +18,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. As a special exception, permission is given to link this program - with any edition of Qt, and distribute the resulting executable, - without including the source code for Qt in the source distribution. + with any edition of TQt, and distribute the resulting executable, + without including the source code for TQt in the source distribution. */ #include @@ -69,8 +69,8 @@ class FreeBusyItem : public KDGanttViewTaskItem { public: - FreeBusyItem( Attendee *attendee, KDGanttView *parent ) : - KDGanttViewTaskItem( parent, parent->lastItem() ), mAttendee( attendee ), mTimerID( 0 ), + FreeBusyItem( Attendee *attendee, KDGanttView *tqparent ) : + KDGanttViewTaskItem( tqparent, tqparent->lastItem() ), mAttendee( attendee ), mTimerID( 0 ), mIsDownloading( false ) { Q_ASSERT( attendee ); @@ -92,7 +92,7 @@ class FreeBusyItem : public KDGanttViewTaskItem TQString key( int column, bool ) const { - TQMap::ConstIterator it = mKeyMap.find( column ); + TQMap::ConstIterator it = mKeyMap.tqfind( column ); if ( it == mKeyMap.end() ) return listViewText( column ); else return *it; } @@ -172,7 +172,7 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb ) KDGanttViewTaskItem *newSubItem = new KDGanttViewTaskItem( this ); newSubItem->setStartTime( per.start() ); newSubItem->setEndTime( per.end() ); - newSubItem->setColors( Qt::red, Qt::red, Qt::red ); + newSubItem->setColors( TQt::red, TQt::red, TQt::red ); TQString toolTip = ""; toolTip += "" + i18n( "Freebusy Period" ) + ""; @@ -209,7 +209,7 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb ) // newSubItem->setStartTime( cur ); // cur = cur.addSecs( 7200 ); // newSubItem->setEndTime( cur ); - // newSubItem->setColors( Qt::red, Qt::red, Qt::red ); + // newSubItem->setColors( TQt::red, TQt::red, TQt::red ); // } //debug only end setFreeBusy( 0 ); @@ -222,9 +222,9 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb ) //// -KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *parent, +KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *tqparent, const char *name ) - : KOAttendeeEditor( parent, name ) + : KOAttendeeEditor( tqparent, name ) { TQVBoxLayout *topLayout = new TQVBoxLayout( this ); topLayout->setSpacing( spacing ); @@ -327,7 +327,7 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *parent, // mEventRectangle is the colored rectangle representing the event being modified mEventRectangle = new KDIntervalColorRectangle( mGanttView ); - mEventRectangle->setColor( Qt::magenta ); + mEventRectangle->setColor( TQt::magenta ); mGanttView->addIntervalBackgroundColor( mEventRectangle ); connect( mGanttView, TQT_SIGNAL ( timeIntervalSelected( const TQDateTime &, @@ -544,7 +544,7 @@ void KOEditorFreeBusy::slotPickDate() if( success ) { if ( start == mDtStart && end == mDtEnd ) { KMessageBox::information( this, - i18n( "The meeting already has suitable start/end times." ), TQString::null, + i18n( "The meeting already has suitable start/end times." ), TQString(), "MeetingTimeOKFreeBusy" ); } else { if ( KMessageBox::questionYesNo( @@ -553,7 +553,7 @@ void KOEditorFreeBusy::slotPickDate() "Start: %1
End: %2
" "Would you like to move the meeting to this time slot?
" ). arg( start.toString(), end.toString() ), - TQString::null, + TQString(), KStdGuiItem::yes(), KStdGuiItem::no(), "MeetingMovedFreeBusy" ) == KMessageBox::Yes ) { emit dateTimesChanged( start, end ); @@ -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()->seStatus( status ); + item->attendee()->setqStatus( 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()->seStatus( (Attendee::PartStat)status ); + currentAttendee()->setqStatus( (Attendee::PartStat)status ); updateCurrentItem(); updateAttendeeInput(); } @@ -920,7 +920,7 @@ void KOEditorFreeBusy::showAttendeeStatusMenu() void KOEditorFreeBusy::listViewClicked(int button, KDGanttViewItem * item) { - if ( button == Qt::LeftButton && item == 0 ) + if ( button == TQt::LeftButton && item == 0 ) addNewAttendee(); } -- cgit v1.2.3