summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorfreebusy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorfreebusy.cpp')
-rw-r--r--korganizer/koeditorfreebusy.cpp30
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();
}