summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditorfreebusy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/koeditorfreebusy.cpp')
-rw-r--r--korganizer/koeditorfreebusy.cpp196
1 files changed, 98 insertions, 98 deletions
diff --git a/korganizer/koeditorfreebusy.cpp b/korganizer/koeditorfreebusy.cpp
index 3849bc5d..19691e80 100644
--- a/korganizer/koeditorfreebusy.cpp
+++ b/korganizer/koeditorfreebusy.cpp
@@ -22,13 +22,13 @@
without including the source code for Qt in the source distribution.
*/
-#include <qtooltip.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qcombobox.h>
-#include <qpushbutton.h>
-#include <qvaluevector.h>
-#include <qwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
+#include <tqpushbutton.h>
+#include <tqvaluevector.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include <klocale.h>
@@ -90,19 +90,19 @@ class FreeBusyItem : public KDGanttViewTaskItem
void setFreeBusyPeriods( FreeBusy *fb );
- QString key( int column, bool ) const
+ TQString key( int column, bool ) const
{
- QMap<int,QString>::ConstIterator it = mKeyMap.find( column );
+ TQMap<int,TQString>::ConstIterator it = mKeyMap.find( column );
if ( it == mKeyMap.end() ) return listViewText( column );
else return *it;
}
- void setSortKey( int column, const QString &key )
+ void setSortKey( int column, const TQString &key )
{
mKeyMap.insert( column, key );
}
- QString email() const { return mAttendee->email(); }
+ TQString email() const { return mAttendee->email(); }
void setUpdateTimerID( int id ) { mTimerID = id; }
int updateTimerID() const { return mTimerID; }
@@ -119,7 +119,7 @@ class FreeBusyItem : public KDGanttViewTaskItem
Attendee *mAttendee;
KCal::FreeBusy *mFreeBusy;
- QMap<int,QString> mKeyMap;
+ TQMap<int,TQString> mKeyMap;
// This is used for the update timer
int mTimerID;
@@ -149,7 +149,7 @@ void FreeBusyItem::updateItem()
setPixmap( 0, KOGlobals::self()->smallIcon( "mail_forward" ) );
break;
default:
- setPixmap( 0, QPixmap() );
+ setPixmap( 0, TQPixmap() );
}
}
@@ -163,14 +163,14 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb )
delete it;
// Evaluate free/busy information
- QValueList<KCal::Period> busyPeriods = fb->busyPeriods();
- for( QValueList<KCal::Period>::Iterator it = busyPeriods.begin();
+ TQValueList<KCal::Period> busyPeriods = fb->busyPeriods();
+ for( TQValueList<KCal::Period>::Iterator it = busyPeriods.begin();
it != busyPeriods.end(); ++it ) {
KDGanttViewTaskItem* newSubItem = new KDGanttViewTaskItem( this );
newSubItem->setStartTime( (*it).start() );
newSubItem->setEndTime( (*it).end() );
newSubItem->setColors( Qt::red, Qt::red, Qt::red );
- QString toolTip;
+ TQString toolTip;
if ( !(*it).summary().isEmpty() )
toolTip += "<b>" + (*it).summary() + "</b><br/>";
if ( !(*it).location().isEmpty() )
@@ -184,7 +184,7 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb )
// No free/busy information
//debug only start
// int ii ;
- // QDateTime cur = QDateTime::currentDateTime();
+ // TQDateTime cur = TQDateTime::currentDateTime();
// for( ii = 0; ii < 10 ;++ii ) {
// KDGanttViewTaskItem* newSubItem = new KDGanttViewTaskItem( this );
// cur = cur.addSecs( 7200 );
@@ -204,11 +204,11 @@ void FreeBusyItem::setFreeBusyPeriods( FreeBusy* fb )
////
-KOEditorFreeBusy::KOEditorFreeBusy( int spacing, QWidget *parent,
+KOEditorFreeBusy::KOEditorFreeBusy( int spacing, TQWidget *parent,
const char *name )
: KOAttendeeEditor( parent, name )
{
- QVBoxLayout *topLayout = new QVBoxLayout( this );
+ TQVBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->setSpacing( spacing );
initOrganizerWidgets( this, topLayout );
@@ -216,66 +216,66 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, QWidget *parent,
// Label for status summary information
// Uses the tooltip palette to highlight it
mIsOrganizer = false; // Will be set later. This is just valgrind silencing
- mStatusSummaryLabel = new QLabel( this );
- mStatusSummaryLabel->setPalette( QToolTip::palette() );
- mStatusSummaryLabel->setFrameStyle( QFrame::Plain | QFrame::Box );
+ mStatusSummaryLabel = new TQLabel( this );
+ mStatusSummaryLabel->setPalette( TQToolTip::palette() );
+ mStatusSummaryLabel->setFrameStyle( TQFrame::Plain | TQFrame::Box );
mStatusSummaryLabel->setLineWidth( 1 );
mStatusSummaryLabel->hide(); // Will be unhidden later if you are organizer
topLayout->addWidget( mStatusSummaryLabel );
// The control panel for the gantt widget
- QBoxLayout *controlLayout = new QHBoxLayout( topLayout );
+ TQBoxLayout *controlLayout = new TQHBoxLayout( topLayout );
- QString whatsThis = i18n("Sets the zoom level on the Gantt chart. "
+ TQString whatsThis = i18n("Sets the zoom level on the Gantt chart. "
"'Hour' shows a range of several hours, "
"'Day' shows a range of a few days, "
"'Week' shows a range of a few months, "
"and 'Month' shows a range of a few years, "
"while 'Automatic' selects the range most "
"appropriate for the current event or to-do.");
- QLabel *label = new QLabel( i18n( "Scale: " ), this );
- QWhatsThis::add( label, whatsThis );
+ TQLabel *label = new TQLabel( i18n( "Scale: " ), this );
+ TQWhatsThis::add( label, whatsThis );
controlLayout->addWidget( label );
- scaleCombo = new QComboBox( this );
- QWhatsThis::add( scaleCombo, whatsThis );
+ scaleCombo = new TQComboBox( this );
+ TQWhatsThis::add( scaleCombo, whatsThis );
scaleCombo->insertItem( i18n( "Hour" ) );
scaleCombo->insertItem( i18n( "Day" ) );
scaleCombo->insertItem( i18n( "Week" ) );
scaleCombo->insertItem( i18n( "Month" ) );
scaleCombo->insertItem( i18n( "Automatic" ) );
scaleCombo->setCurrentItem( 0 ); // start with "hour"
- connect( scaleCombo, SIGNAL( activated( int ) ),
- SLOT( slotScaleChanged( int ) ) );
+ connect( scaleCombo, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotScaleChanged( int ) ) );
controlLayout->addWidget( scaleCombo );
- QPushButton *button = new QPushButton( i18n( "Center on Start" ), this );
- QWhatsThis::add( button,
+ TQPushButton *button = new TQPushButton( i18n( "Center on Start" ), this );
+ TQWhatsThis::add( button,
i18n("Centers the Gantt chart on the start time "
"and day of this event.") );
- connect( button, SIGNAL( clicked() ), SLOT( slotCenterOnStart() ) );
+ connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( slotCenterOnStart() ) );
controlLayout->addWidget( button );
controlLayout->addStretch( 1 );
- button = new QPushButton( i18n( "Pick Date" ), this );
- QWhatsThis::add( button,
+ button = new TQPushButton( i18n( "Pick Date" ), this );
+ TQWhatsThis::add( button,
i18n("Moves the event to a date and time when all the "
"attendees are free.") );
- connect( button, SIGNAL( clicked() ), SLOT( slotPickDate() ) );
+ connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( slotPickDate() ) );
controlLayout->addWidget( button );
controlLayout->addStretch( 1 );
- button = new QPushButton( i18n("Reload"), this );
- QWhatsThis::add( button,
+ button = new TQPushButton( i18n("Reload"), this );
+ TQWhatsThis::add( button,
i18n("Reloads Free/Busy data for all attendees from "
"the corresponding servers.") );
controlLayout->addWidget( button );
- connect( button, SIGNAL( clicked() ), SLOT( manualReload() ) );
+ connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( manualReload() ) );
mGanttView = new KDGanttView( this, "mGanttView" );
- QWhatsThis::add( mGanttView,
+ TQWhatsThis::add( mGanttView,
i18n("Shows the free/busy status of all attendees. "
"Double-clicking on an attendees entry in the "
"list will allow you to enter the location of their "
@@ -292,16 +292,16 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, QWidget *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
- QDateTime horizonStart = QDateTime( QDateTime::currentDateTime()
+ TQDateTime horizonStart = TQDateTime( TQDateTime::currentDateTime()
.addDays( -15 ).date() );
- QDateTime horizonEnd = QDateTime::currentDateTime().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( QDateTime::currentDateTime() );
+ mGanttView->centerTimelineAfterShow( TQDateTime::currentDateTime() );
if ( KGlobal::locale()->use12Clock() )
mGanttView->setHourFormat( KDGanttView::Hour_12 );
else
@@ -312,37 +312,37 @@ KOEditorFreeBusy::KOEditorFreeBusy( int spacing, QWidget *parent,
mEventRectangle->setColor( Qt::magenta );
mGanttView->addIntervalBackgroundColor( mEventRectangle );
- connect( mGanttView, SIGNAL ( timeIntervalSelected( const QDateTime &,
- const QDateTime & ) ),
- mGanttView, SLOT( zoomToSelection( const QDateTime &,
- const QDateTime & ) ) );
- connect( mGanttView, SIGNAL( lvItemDoubleClicked( KDGanttViewItem * ) ),
- SLOT( editFreeBusyUrl( KDGanttViewItem * ) ) );
- connect( mGanttView, SIGNAL( intervalColorRectangleMoved( const QDateTime&, const QDateTime& ) ),
- this, SLOT( slotIntervalColorRectangleMoved( const QDateTime&, const QDateTime& ) ) );
-
- connect( mGanttView, SIGNAL(lvSelectionChanged(KDGanttViewItem*)),
- this, SLOT(updateAttendeeInput()) );
- connect( mGanttView, SIGNAL(lvItemLeftClicked(KDGanttViewItem*)),
- this, SLOT(showAttendeeStatusMenu()) );
- connect( mGanttView, SIGNAL(lvItemRightClicked(KDGanttViewItem*)),
- this, SLOT(showAttendeeStatusMenu()) );
- connect( mGanttView, SIGNAL(lvMouseButtonClicked(int, KDGanttViewItem*, const QPoint&, int)),
- this, SLOT(listViewClicked(int, KDGanttViewItem*)) );
+ connect( mGanttView, TQT_SIGNAL ( timeIntervalSelected( const TQDateTime &,
+ const TQDateTime & ) ),
+ mGanttView, TQT_SLOT( zoomToSelection( const TQDateTime &,
+ const TQDateTime & ) ) );
+ connect( mGanttView, TQT_SIGNAL( lvItemDoubleClicked( KDGanttViewItem * ) ),
+ TQT_SLOT( editFreeBusyUrl( KDGanttViewItem * ) ) );
+ connect( mGanttView, TQT_SIGNAL( intervalColorRectangleMoved( const TQDateTime&, const TQDateTime& ) ),
+ this, TQT_SLOT( slotIntervalColorRectangleMoved( const TQDateTime&, const TQDateTime& ) ) );
+
+ connect( mGanttView, TQT_SIGNAL(lvSelectionChanged(KDGanttViewItem*)),
+ this, TQT_SLOT(updateAttendeeInput()) );
+ connect( mGanttView, TQT_SIGNAL(lvItemLeftClicked(KDGanttViewItem*)),
+ this, TQT_SLOT(showAttendeeStatusMenu()) );
+ connect( mGanttView, TQT_SIGNAL(lvItemRightClicked(KDGanttViewItem*)),
+ this, TQT_SLOT(showAttendeeStatusMenu()) );
+ connect( mGanttView, TQT_SIGNAL(lvMouseButtonClicked(int, KDGanttViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(listViewClicked(int, KDGanttViewItem*)) );
FreeBusyManager *m = KOGroupware::instance()->freeBusyManager();
- connect( m, SIGNAL( freeBusyRetrieved( KCal::FreeBusy *, const QString & ) ),
- SLOT( slotInsertFreeBusy( KCal::FreeBusy *, const QString & ) ) );
+ connect( m, TQT_SIGNAL( freeBusyRetrieved( KCal::FreeBusy *, const TQString & ) ),
+ TQT_SLOT( slotInsertFreeBusy( KCal::FreeBusy *, const TQString & ) ) );
- connect( &mReloadTimer, SIGNAL( timeout() ), SLOT( autoReload() ) );
+ connect( &mReloadTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( autoReload() ) );
initEditWidgets( this, topLayout );
- connect( mRemoveButton, SIGNAL(clicked()),
- SLOT(removeAttendee()) );
+ connect( mRemoveButton, TQT_SIGNAL(clicked()),
+ TQT_SLOT(removeAttendee()) );
slotOrganizerChanged( mOrganizerCombo->currentText() );
- connect( mOrganizerCombo, SIGNAL( activated(const QString&) ),
- this, SLOT( slotOrganizerChanged(const QString&) ) );
+ connect( mOrganizerCombo, TQT_SIGNAL( activated(const TQString&) ),
+ this, TQT_SLOT( slotOrganizerChanged(const TQString&) ) );
//suppress the buggy consequences of clicks on the time header widget
mGanttView->timeHeaderWidget()->installEventFilter( this );
@@ -414,7 +414,7 @@ void KOEditorFreeBusy::readEvent( Event *event )
emit updateAttendeeSummary( mGanttView->childCount() );
}
-void KOEditorFreeBusy::slotIntervalColorRectangleMoved( const QDateTime& start, const QDateTime& end )
+void KOEditorFreeBusy::slotIntervalColorRectangleMoved( const TQDateTime& start, const TQDateTime& end )
{
kdDebug() << k_funcinfo << "slotIntervalColorRectangleMoved " << start << "," << end << endl;
mDtStart = start;
@@ -422,7 +422,7 @@ void KOEditorFreeBusy::slotIntervalColorRectangleMoved( const QDateTime& start,
emit dateTimesChanged( start, end );
}
-void KOEditorFreeBusy::setDateTimes( const QDateTime &start, const QDateTime &end )
+void KOEditorFreeBusy::setDateTimes( const TQDateTime &start, const TQDateTime &end )
{
slotUpdateGanttView( start, end );
}
@@ -460,7 +460,7 @@ void KOEditorFreeBusy::updateFreeBusyData( FreeBusyItem* item )
item->setUpdateTimerID( startTimer( 5000 ) );
}
-void KOEditorFreeBusy::timerEvent( QTimerEvent* event )
+void KOEditorFreeBusy::timerEvent( TQTimerEvent* event )
{
killTimer( event->timerId() );
FreeBusyItem *item = static_cast<FreeBusyItem *>( mGanttView->firstChild() );
@@ -477,7 +477,7 @@ void KOEditorFreeBusy::timerEvent( QTimerEvent* event )
// Set the Free Busy list for everyone having this email address
// If fb == 0, this disabled the free busy list for them
void KOEditorFreeBusy::slotInsertFreeBusy( KCal::FreeBusy *fb,
- const QString &email )
+ const TQString &email )
{
kdDebug(5850) << "KOEditorFreeBusy::slotInsertFreeBusy() " << email << endl;
@@ -499,13 +499,13 @@ void KOEditorFreeBusy::slotInsertFreeBusy( KCal::FreeBusy *fb,
Centers the Gantt view to the date/time passed in.
*/
-void KOEditorFreeBusy::slotUpdateGanttView( const QDateTime &dtFrom, const QDateTime &dtTo )
+void KOEditorFreeBusy::slotUpdateGanttView( const TQDateTime &dtFrom, const TQDateTime &dtTo )
{
mDtStart = dtFrom;
mDtEnd = dtTo;
bool block = mGanttView->getUpdateEnabled( );
mGanttView->setUpdateEnabled( false );
- QDateTime horizonStart = QDateTime( dtFrom.addDays( -15 ).date() );
+ TQDateTime horizonStart = TQDateTime( dtFrom.addDays( -15 ).date() );
mGanttView->setHorizonStart( horizonStart );
mGanttView->setHorizonEnd( dtTo.addDays( 15 ) );
mEventRectangle->setDateTimes( dtFrom, dtTo );
@@ -519,21 +519,21 @@ void KOEditorFreeBusy::slotUpdateGanttView( const QDateTime &dtFrom, const QDate
*/
void KOEditorFreeBusy::slotPickDate()
{
- QDateTime start = mDtStart;
- QDateTime end = mDtEnd;
+ TQDateTime start = mDtStart;
+ TQDateTime end = mDtEnd;
bool success = findFreeSlot( start, end );
if( success ) {
if ( start == mDtStart && end == mDtEnd ) {
KMessageBox::information( this,
- i18n( "The meeting already has suitable start/end times." ), QString::null,
+ i18n( "The meeting already has suitable start/end times." ), TQString::null,
"MeetingTimeOKFreeBusy" );
} else {
emit dateTimesChanged( start, end );
slotUpdateGanttView( start, end );
KMessageBox::information( this,
i18n( "The meeting has been moved to\nStart: %1\nEnd: %2." )
- .arg( start.toString() ).arg( end.toString() ), QString::null,
+ .arg( start.toString() ).arg( end.toString() ), TQString::null,
"MeetingMovedFreeBusy" );
}
} else
@@ -545,21 +545,21 @@ void KOEditorFreeBusy::slotPickDate()
Finds a free slot in the future which has at least the same size as
the initial slot.
*/
-bool KOEditorFreeBusy::findFreeSlot( QDateTime &dtFrom, QDateTime &dtTo )
+bool KOEditorFreeBusy::findFreeSlot( TQDateTime &dtFrom, TQDateTime &dtTo )
{
if( tryDate( dtFrom, dtTo ) )
// Current time is acceptable
return true;
- QDateTime tryFrom = dtFrom;
- QDateTime tryTo = dtTo;
+ TQDateTime tryFrom = dtFrom;
+ TQDateTime tryTo = 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 < QDateTime::currentDateTime() ) {
+ if( tryFrom < TQDateTime::currentDateTime() ) {
// The slot to look for is at least partially in the past.
int secs = tryFrom.secsTo( tryTo );
- tryFrom = QDateTime::currentDateTime();
+ tryFrom = TQDateTime::currentDateTime();
tryTo = tryFrom.addSecs( secs );
}
@@ -586,7 +586,7 @@ bool KOEditorFreeBusy::findFreeSlot( QDateTime &dtFrom, QDateTime &dtTo )
that participant. In other words, the returned slot does not have to
be free for everybody else.
*/
-bool KOEditorFreeBusy::tryDate( QDateTime& tryFrom, QDateTime& tryTo )
+bool KOEditorFreeBusy::tryDate( TQDateTime& tryFrom, TQDateTime& tryTo )
{
FreeBusyItem* currentItem = static_cast<FreeBusyItem*>( mGanttView->firstChild() );
while( currentItem ) {
@@ -609,7 +609,7 @@ bool KOEditorFreeBusy::tryDate( QDateTime& tryFrom, QDateTime& tryTo )
available for all participants).
*/
bool KOEditorFreeBusy::tryDate( FreeBusyItem *attendee,
- QDateTime &tryFrom, QDateTime &tryTo )
+ TQDateTime &tryFrom, TQDateTime &tryTo )
{
// If we don't have any free/busy information, assume the
// participant is free. Otherwise a participant without available
@@ -618,8 +618,8 @@ bool KOEditorFreeBusy::tryDate( FreeBusyItem *attendee,
if( !fb )
return true;
- QValueList<KCal::Period> busyPeriods = fb->busyPeriods();
- for( QValueList<KCal::Period>::Iterator it = busyPeriods.begin();
+ TQValueList<KCal::Period> busyPeriods = fb->busyPeriods();
+ for( TQValueList<KCal::Period>::Iterator it = busyPeriods.begin();
it != busyPeriods.end(); ++it ) {
if( (*it).end() <= tryFrom || // busy period ends before try period
(*it).start() >= tryTo ) // busy period starts after try period
@@ -732,7 +732,7 @@ void KOEditorFreeBusy::editFreeBusyUrl( KDGanttViewItem *i )
void KOEditorFreeBusy::writeEvent(KCal::Event * event)
{
event->clearAttendees();
- QValueVector<FreeBusyItem*> toBeDeleted;
+ TQValueVector<FreeBusyItem*> toBeDeleted;
for ( FreeBusyItem *item = static_cast<FreeBusyItem *>( mGanttView->firstChild() ); item;
item = static_cast<FreeBusyItem*>( item->nextSibling() ) )
{
@@ -772,7 +772,7 @@ void KOEditorFreeBusy::writeEvent(KCal::Event * event)
KOAttendeeEditor::writeEvent( event );
// cleanup
- QValueVector<FreeBusyItem*>::iterator it;
+ TQValueVector<FreeBusyItem*>::iterator it;
for( it = toBeDeleted.begin(); it != toBeDeleted.end(); ++it ) {
delete *it;
}
@@ -825,11 +825,11 @@ void KOEditorFreeBusy::clearSelection() const
void KOEditorFreeBusy::changeStatusForMe(KCal::Attendee::PartStat status)
{
- const QStringList myEmails = KOPrefs::instance()->allEmails();
+ const TQStringList myEmails = KOPrefs::instance()->allEmails();
for ( FreeBusyItem *item = static_cast<FreeBusyItem *>( mGanttView->firstChild() ); item;
item = static_cast<FreeBusyItem*>( item->nextSibling() ) )
{
- for ( QStringList::ConstIterator it2( myEmails.begin() ), end( myEmails.end() ); it2 != end; ++it2 ) {
+ for ( TQStringList::ConstIterator it2( myEmails.begin() ), end( myEmails.end() ); it2 != end; ++it2 ) {
if ( item->attendee()->email() == *it2 ) {
item->attendee()->setStatus( status );
item->updateItem();
@@ -840,9 +840,9 @@ void KOEditorFreeBusy::changeStatusForMe(KCal::Attendee::PartStat status)
void KOEditorFreeBusy::showAttendeeStatusMenu()
{
- if ( mGanttView->mapFromGlobal( QCursor::pos() ).x() > 22 )
+ if ( mGanttView->mapFromGlobal( TQCursor::pos() ).x() > 22 )
return;
- QPopupMenu popup;
+ TQPopupMenu popup;
popup.insertItem( SmallIcon( "help" ), Attendee::statusName( Attendee::NeedsAction ), Attendee::NeedsAction );
popup.insertItem( KOGlobals::self()->smallIcon( "ok" ), Attendee::statusName( Attendee::Accepted ), Attendee::Accepted );
popup.insertItem( KOGlobals::self()->smallIcon( "no" ), Attendee::statusName( Attendee::Declined ), Attendee::Declined );
@@ -851,7 +851,7 @@ void KOEditorFreeBusy::showAttendeeStatusMenu()
popup.insertItem( Attendee::statusName( Attendee::Completed ), Attendee::Completed );
popup.insertItem( KOGlobals::self()->smallIcon( "help" ), Attendee::statusName( Attendee::InProcess ), Attendee::InProcess );
popup.setItemChecked( currentAttendee()->status(), true );
- int status = popup.exec( QCursor::pos() );
+ int status = popup.exec( TQCursor::pos() );
if ( status >= 0 ) {
currentAttendee()->setStatus( (Attendee::PartStat)status );
updateCurrentItem();
@@ -865,12 +865,12 @@ void KOEditorFreeBusy::listViewClicked(int button, KDGanttViewItem * item)
addNewAttendee();
}
-void KOEditorFreeBusy::slotOrganizerChanged(const QString & newOrganizer)
+void KOEditorFreeBusy::slotOrganizerChanged(const TQString & newOrganizer)
{
if (newOrganizer==mCurrentOrganizer) return;
- QString name;
- QString email;
+ TQString name;
+ TQString email;
bool success = KPIM::getNameAndMail( newOrganizer, name, email );
if (!success) return;
@@ -918,10 +918,10 @@ void KOEditorFreeBusy::slotOrganizerChanged(const QString & newOrganizer)
mCurrentOrganizer = newOrganizer;
}
-bool KOEditorFreeBusy::eventFilter( QObject *watched, QEvent *event )
+bool KOEditorFreeBusy::eventFilter( TQObject *watched, TQEvent *event )
{
if ( watched == mGanttView->timeHeaderWidget() &&
- event->type() >= QEvent::MouseButtonPress && event->type() <= QEvent::MouseMove ) {
+ event->type() >= TQEvent::MouseButtonPress && event->type() <= TQEvent::MouseMove ) {
return true;
} else {
return KOAttendeeEditor::eventFilter( watched, event );