diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-13 00:46:47 +0000 |
commit | 67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch) | |
tree | 5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/koeditorfreebusy.cpp | |
parent | 2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff) | |
download | tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip |
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
Diffstat (limited to 'korganizer/koeditorfreebusy.cpp')
-rw-r--r-- | korganizer/koeditorfreebusy.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp index af8b0f5c5..da7f36f04 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 <tqtooltip.h> @@ -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<int,TQString>::ConstIterator it = mKeyMap.find( column ); + TQMap<int,TQString>::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 = "<qt>"; toolTip += "<b>" + i18n( "Freebusy Period" ) + "</b>"; @@ -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<br>End: %2<br>" "Would you like to move the meeting to this time slot?</qt>" ). 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(); } |