diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/korganizer | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/korganizer')
-rw-r--r-- | kontact/plugins/korganizer/journalplugin.cpp | 16 | ||||
-rw-r--r-- | kontact/plugins/korganizer/journalplugin.h | 6 | ||||
-rw-r--r-- | kontact/plugins/korganizer/kcmkorgsummary.cpp | 52 | ||||
-rw-r--r-- | kontact/plugins/korganizer/kcmkorgsummary.h | 8 | ||||
-rw-r--r-- | kontact/plugins/korganizer/korganizerplugin.cpp | 54 | ||||
-rw-r--r-- | kontact/plugins/korganizer/korganizerplugin.h | 18 | ||||
-rw-r--r-- | kontact/plugins/korganizer/summarywidget.cpp | 98 | ||||
-rw-r--r-- | kontact/plugins/korganizer/summarywidget.h | 20 | ||||
-rw-r--r-- | kontact/plugins/korganizer/todoplugin.cpp | 46 | ||||
-rw-r--r-- | kontact/plugins/korganizer/todoplugin.h | 12 | ||||
-rw-r--r-- | kontact/plugins/korganizer/todosummarywidget.cpp | 86 | ||||
-rw-r--r-- | kontact/plugins/korganizer/todosummarywidget.h | 22 |
12 files changed, 219 insertions, 219 deletions
diff --git a/kontact/plugins/korganizer/journalplugin.cpp b/kontact/plugins/korganizer/journalplugin.cpp index 178901b4c..789762d5f 100644 --- a/kontact/plugins/korganizer/journalplugin.cpp +++ b/kontact/plugins/korganizer/journalplugin.cpp @@ -22,7 +22,7 @@ without including the source code for Qt in the source distribution. */ -#include <qwidget.h> +#include <tqwidget.h> #include <kapplication.h> #include <kaction.h> @@ -42,7 +42,7 @@ typedef KGenericFactory< JournalPlugin, Kontact::Core > JournalPluginFactory; K_EXPORT_COMPONENT_FACTORY( libkontact_journalplugin, JournalPluginFactory( "kontact_journalplugin" ) ) -JournalPlugin::JournalPlugin( Kontact::Core *core, const char *, const QStringList& ) +JournalPlugin::JournalPlugin( Kontact::Core *core, const char *, const TQStringList& ) : Kontact::Plugin( core, core, "korganizer" ), mIface( 0 ) { @@ -50,10 +50,10 @@ JournalPlugin::JournalPlugin( Kontact::Core *core, const char *, const QStringLi instance()->iconLoader()->addAppDir("kdepim"); insertNewAction( new KAction( i18n( "New Journal..." ), "newjournal", - CTRL+SHIFT+Key_J, this, SLOT( slotNewJournal() ), actionCollection(), + CTRL+SHIFT+Key_J, this, TQT_SLOT( slotNewJournal() ), actionCollection(), "new_journal" ) ); insertSyncAction( new KAction( i18n( "Synchronize Journal" ), "reload", - 0, this, SLOT( slotSyncJournal() ), actionCollection(), + 0, this, TQT_SLOT( slotSyncJournal() ), actionCollection(), "journal_sync" ) ); @@ -83,9 +83,9 @@ void JournalPlugin::select() interface()->showJournalView(); } -QStringList JournalPlugin::invisibleToolbarActions() const +TQStringList JournalPlugin::invisibleToolbarActions() const { - QStringList invisible; + TQStringList invisible; invisible += "new_event"; invisible += "new_todo"; invisible += "new_journal"; @@ -117,10 +117,10 @@ void JournalPlugin::slotNewJournal() void JournalPlugin::slotSyncJournal() { DCOPRef ref( "kmail", "KMailICalIface" ); - ref.send( "triggerSync", QString("Journal") ); + ref.send( "triggerSync", TQString("Journal") ); } -bool JournalPlugin::createDCOPInterface( const QString& serviceType ) +bool JournalPlugin::createDCOPInterface( const TQString& serviceType ) { kdDebug(5602) << k_funcinfo << serviceType << endl; if ( serviceType == "DCOP/Organizer" || serviceType == "DCOP/Calendar" ) { diff --git a/kontact/plugins/korganizer/journalplugin.h b/kontact/plugins/korganizer/journalplugin.h index 668c2b289..2aeca3544 100644 --- a/kontact/plugins/korganizer/journalplugin.h +++ b/kontact/plugins/korganizer/journalplugin.h @@ -35,14 +35,14 @@ class JournalPlugin : public Kontact::Plugin { Q_OBJECT public: - JournalPlugin( Kontact::Core *core, const char *name, const QStringList& ); + JournalPlugin( Kontact::Core *core, const char *name, const TQStringList& ); ~JournalPlugin(); - virtual bool createDCOPInterface( const QString& serviceType ); + virtual bool createDCOPInterface( const TQString& serviceType ); virtual bool isRunningStandalone(); int weight() const { return 500; } - virtual QStringList invisibleToolbarActions() const; + virtual TQStringList invisibleToolbarActions() const; void select(); diff --git a/kontact/plugins/korganizer/kcmkorgsummary.cpp b/kontact/plugins/korganizer/kcmkorgsummary.cpp index 9ab0b6838..2a4b6a3e1 100644 --- a/kontact/plugins/korganizer/kcmkorgsummary.cpp +++ b/kontact/plugins/korganizer/kcmkorgsummary.cpp @@ -21,11 +21,11 @@ without including the source code for Qt in the source distribution. */ -#include <qbuttongroup.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qradiobutton.h> -#include <qspinbox.h> +#include <tqbuttongroup.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqradiobutton.h> +#include <tqspinbox.h> #include <kaboutdata.h> #include <kapplication.h> @@ -41,24 +41,24 @@ extern "C" { - KDE_EXPORT KCModule *create_korgsummary( QWidget *parent, const char * ) + KDE_EXPORT KCModule *create_korgsummary( TQWidget *parent, const char * ) { return new KCMKOrgSummary( parent, "kcmkorgsummary" ); } } -KCMKOrgSummary::KCMKOrgSummary( QWidget *parent, const char *name ) +KCMKOrgSummary::KCMKOrgSummary( TQWidget *parent, const char *name ) : KCModule( parent, name ) { initGUI(); customDaysChanged( 1 ); - connect( mCalendarGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mCalendarGroup, SIGNAL( clicked( int ) ), SLOT( buttonClicked( int ) ) ); - connect( mTodoGroup, SIGNAL( clicked( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( modified() ) ); - connect( mCustomDays, SIGNAL( valueChanged( int ) ), SLOT( customDaysChanged( int ) ) ); + connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mCalendarGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( buttonClicked( int ) ) ); + connect( mTodoGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( modified() ) ); + connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( modified() ) ); + connect( mCustomDays, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( customDaysChanged( int ) ) ); KAcceleratorManager::manage( this ); @@ -90,33 +90,33 @@ void KCMKOrgSummary::customDaysChanged( int value ) void KCMKOrgSummary::initGUI() { - QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - mCalendarGroup = new QButtonGroup( 0, Vertical, i18n( "Appointments" ), this ); - QVBoxLayout *boxLayout = new QVBoxLayout( mCalendarGroup->layout(), + mCalendarGroup = new TQButtonGroup( 0, Vertical, i18n( "Appointments" ), this ); + TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->layout(), KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "How many days should the calendar show at once?" ), mCalendarGroup ); + TQLabel *label = new TQLabel( i18n( "How many days should the calendar show at once?" ), mCalendarGroup ); boxLayout->addWidget( label ); - QRadioButton *button = new QRadioButton( i18n( "One day" ), mCalendarGroup ); + TQRadioButton *button = new TQRadioButton( i18n( "One day" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "Five days" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "Five days" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One week" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "One week" ), mCalendarGroup ); boxLayout->addWidget( button ); - button = new QRadioButton( i18n( "One month" ), mCalendarGroup ); + button = new TQRadioButton( i18n( "One month" ), mCalendarGroup ); boxLayout->addWidget( button ); - QHBoxLayout *hbox = new QHBoxLayout( boxLayout, KDialog::spacingHint() ); + TQHBoxLayout *hbox = new TQHBoxLayout( boxLayout, KDialog::spacingHint() ); - button = new QRadioButton( "", mCalendarGroup ); + button = new TQRadioButton( "", mCalendarGroup ); hbox->addWidget( button ); - mCustomDays = new QSpinBox( 1, 365, 1, mCalendarGroup ); + mCustomDays = new TQSpinBox( 1, 365, 1, mCalendarGroup ); mCustomDays->setEnabled( false ); hbox->addWidget( mCustomDays ); @@ -124,9 +124,9 @@ void KCMKOrgSummary::initGUI() layout->addWidget( mCalendarGroup ); - mTodoGroup = new QButtonGroup( 2, Horizontal, i18n( "To-dos" ), this ); - new QRadioButton( i18n( "Show all to-dos" ), mTodoGroup ); - new QRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup ); + mTodoGroup = new TQButtonGroup( 2, Horizontal, i18n( "To-dos" ), this ); + new TQRadioButton( i18n( "Show all to-dos" ), mTodoGroup ); + new TQRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup ); layout->addWidget( mTodoGroup ); diff --git a/kontact/plugins/korganizer/kcmkorgsummary.h b/kontact/plugins/korganizer/kcmkorgsummary.h index cf484e56d..9ae0ac58e 100644 --- a/kontact/plugins/korganizer/kcmkorgsummary.h +++ b/kontact/plugins/korganizer/kcmkorgsummary.h @@ -34,7 +34,7 @@ class KCMKOrgSummary : public KCModule Q_OBJECT public: - KCMKOrgSummary( QWidget *parent = 0, const char *name = 0 ); + KCMKOrgSummary( TQWidget *parent = 0, const char *name = 0 ); virtual void load(); virtual void save(); @@ -48,9 +48,9 @@ class KCMKOrgSummary : public KCModule private: void initGUI(); - QButtonGroup *mCalendarGroup; - QButtonGroup *mTodoGroup; - QSpinBox *mCustomDays; + TQButtonGroup *mCalendarGroup; + TQButtonGroup *mTodoGroup; + TQSpinBox *mCustomDays; }; #endif diff --git a/kontact/plugins/korganizer/korganizerplugin.cpp b/kontact/plugins/korganizer/korganizerplugin.cpp index f4a3dfe1b..a73e551ef 100644 --- a/kontact/plugins/korganizer/korganizerplugin.cpp +++ b/kontact/plugins/korganizer/korganizerplugin.cpp @@ -22,10 +22,10 @@ without including the source code for Qt in the source distribution. */ -#include <qcursor.h> -#include <qfile.h> -#include <qwidget.h> -#include <qdragobject.h> +#include <tqcursor.h> +#include <tqfile.h> +#include <tqwidget.h> +#include <tqdragobject.h> #include <kapplication.h> #include <kabc/vcardconverter.h> @@ -52,7 +52,7 @@ typedef KGenericFactory< KOrganizerPlugin, Kontact::Core > KOrganizerPluginFacto K_EXPORT_COMPONENT_FACTORY( libkontact_korganizerplugin, KOrganizerPluginFactory( "kontact_korganizerplugin" ) ) -KOrganizerPlugin::KOrganizerPlugin( Kontact::Core *core, const char *, const QStringList& ) +KOrganizerPlugin::KOrganizerPlugin( Kontact::Core *core, const char *, const TQStringList& ) : Kontact::Plugin( core, core, "korganizer" ), mIface( 0 ) { @@ -61,11 +61,11 @@ KOrganizerPlugin::KOrganizerPlugin( Kontact::Core *core, const char *, const QSt instance()->iconLoader()->addAppDir("kdepim"); insertNewAction( new KAction( i18n( "New Event..." ), "newappointment", - CTRL+SHIFT+Key_E, this, SLOT( slotNewEvent() ), actionCollection(), + CTRL+SHIFT+Key_E, this, TQT_SLOT( slotNewEvent() ), actionCollection(), "new_event" ) ); insertSyncAction( new KAction( i18n( "Synchronize Calendar" ), "reload", - 0, this, SLOT( slotSyncEvents() ), actionCollection(), + 0, this, TQT_SLOT( slotSyncEvents() ), actionCollection(), "korganizer_sync" ) ); mUniqueAppWatcher = new Kontact::UniqueAppWatcher( @@ -76,7 +76,7 @@ KOrganizerPlugin::~KOrganizerPlugin() { } -Kontact::Summary *KOrganizerPlugin::createSummaryWidget( QWidget *parent ) +Kontact::Summary *KOrganizerPlugin::createSummaryWidget( TQWidget *parent ) { return new SummaryWidget( this, parent ); } @@ -93,15 +93,15 @@ KParts::ReadOnlyPart *KOrganizerPlugin::createPart() return part; } -QString KOrganizerPlugin::tipFile() const +TQString KOrganizerPlugin::tipFile() const { - QString file = ::locate("data", "korganizer/tips"); + TQString file = ::locate("data", "korganizer/tips"); return file; } -QStringList KOrganizerPlugin::invisibleToolbarActions() const +TQStringList KOrganizerPlugin::invisibleToolbarActions() const { - QStringList invisible; + TQStringList invisible; invisible += "new_event"; invisible += "new_todo"; invisible += "new_journal"; @@ -133,10 +133,10 @@ void KOrganizerPlugin::slotNewEvent() void KOrganizerPlugin::slotSyncEvents() { DCOPRef ref( "kmail", "KMailICalIface" ); - ref.send( "triggerSync", QString("Calendar") ); + ref.send( "triggerSync", TQString("Calendar") ); } -bool KOrganizerPlugin::createDCOPInterface( const QString& serviceType ) +bool KOrganizerPlugin::createDCOPInterface( const TQString& serviceType ) { kdDebug(5602) << k_funcinfo << serviceType << endl; if ( serviceType == "DCOP/Organizer" || serviceType == "DCOP/Calendar" ) { @@ -152,36 +152,36 @@ bool KOrganizerPlugin::isRunningStandalone() return mUniqueAppWatcher->isRunningStandalone(); } -bool KOrganizerPlugin::canDecodeDrag( QMimeSource *mimeSource ) +bool KOrganizerPlugin::canDecodeDrag( TQMimeSource *mimeSource ) { - return QTextDrag::canDecode( mimeSource ) || + return TQTextDrag::canDecode( mimeSource ) || KPIM::MailListDrag::canDecode( mimeSource ); } -void KOrganizerPlugin::processDropEvent( QDropEvent *event ) +void KOrganizerPlugin::processDropEvent( TQDropEvent *event ) { - QString text; + TQString text; KABC::VCardConverter converter; if ( KVCardDrag::canDecode( event ) && KVCardDrag::decode( event, text ) ) { KABC::Addressee::List contacts = converter.parseVCards( text ); KABC::Addressee::List::Iterator it; - QStringList attendees; + TQStringList attendees; for ( it = contacts.begin(); it != contacts.end(); ++it ) { - QString email = (*it).fullEmail(); + TQString email = (*it).fullEmail(); if ( email.isEmpty() ) attendees.append( (*it).realName() + "<>" ); else attendees.append( email ); } - interface()->openEventEditor( i18n( "Meeting" ), QString::null, QString::null, + interface()->openEventEditor( i18n( "Meeting" ), TQString::null, TQString::null, attendees ); return; } - if ( QTextDrag::decode( event, text ) ) { + if ( TQTextDrag::decode( event, text ) ) { kdDebug(5602) << "DROP:" << text << endl; interface()->openEventEditor( text ); return; @@ -194,16 +194,16 @@ void KOrganizerPlugin::processDropEvent( QDropEvent *event ) i18n("Drops of multiple mails are not supported." ) ); } else { KPIM::MailSummary mail = mails.first(); - QString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() ) + TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() ) .arg( mail.to() ).arg( mail.subject() ); KTempFile tf; tf.setAutoDelete( true ); - QString uri = QString::fromLatin1("kmail:") + QString::number( mail.serialNumber() ); + TQString uri = TQString::fromLatin1("kmail:") + TQString::number( mail.serialNumber() ); tf.file()->writeBlock( event->encodedData( "message/rfc822" ) ); tf.close(); interface()->openEventEditor( i18n("Mail: %1").arg( mail.subject() ), txt, - uri, tf.name(), QStringList(), "message/rfc822" ); + uri, tf.name(), TQStringList(), "message/rfc822" ); } return; } @@ -218,13 +218,13 @@ bool KOrganizerPlugin::queryClose() const { return (!canClose); } -void KOrganizerPlugin::loadProfile( const QString& directory ) +void KOrganizerPlugin::loadProfile( const TQString& directory ) { DCOPRef ref( "korganizer", "KOrganizerIface" ); ref.send( "loadProfile", directory ); } -void KOrganizerPlugin::saveToProfile( const QString& directory ) const +void KOrganizerPlugin::saveToProfile( const TQString& directory ) const { DCOPRef ref( "korganizer", "KOrganizerIface" ); ref.send( "saveToProfile", directory ); diff --git a/kontact/plugins/korganizer/korganizerplugin.h b/kontact/plugins/korganizer/korganizerplugin.h index 7d74c830e..1343464ec 100644 --- a/kontact/plugins/korganizer/korganizerplugin.h +++ b/kontact/plugins/korganizer/korganizerplugin.h @@ -38,30 +38,30 @@ class KOrganizerPlugin : public Kontact::Plugin Q_OBJECT public: - KOrganizerPlugin( Kontact::Core *core, const char *name, const QStringList& ); + KOrganizerPlugin( Kontact::Core *core, const char *name, const TQStringList& ); ~KOrganizerPlugin(); - virtual bool createDCOPInterface( const QString& serviceType ); + virtual bool createDCOPInterface( const TQString& serviceType ); virtual bool isRunningStandalone(); int weight() const { return 400; } virtual bool queryClose() const; - bool canDecodeDrag( QMimeSource * ); - void processDropEvent( QDropEvent * ); + bool canDecodeDrag( TQMimeSource * ); + void processDropEvent( TQDropEvent * ); - virtual Kontact::Summary *createSummaryWidget( QWidget *parent ); + virtual Kontact::Summary *createSummaryWidget( TQWidget *parent ); - virtual QString tipFile() const; - virtual QStringList invisibleToolbarActions() const; + virtual TQString tipFile() const; + virtual TQStringList invisibleToolbarActions() const; void select(); KCalendarIface_stub *interface(); - void loadProfile( const QString& path ); - void saveToProfile( const QString& path ) const; + void loadProfile( const TQString& path ); + void saveToProfile( const TQString& path ) const; protected: KParts::ReadOnlyPart *createPart(); diff --git a/kontact/plugins/korganizer/summarywidget.cpp b/kontact/plugins/korganizer/summarywidget.cpp index 68742248f..ff3d5da9d 100644 --- a/kontact/plugins/korganizer/summarywidget.cpp +++ b/kontact/plugins/korganizer/summarywidget.cpp @@ -21,10 +21,10 @@ without including the source code for Qt in the source distribution. */ -#include <qcursor.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtooltip.h> +#include <tqcursor.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtooltip.h> #include <kdialog.h> #include <kglobal.h> @@ -50,26 +50,26 @@ #include "summarywidget.h" -SummaryWidget::SummaryWidget( KOrganizerPlugin *plugin, QWidget *parent, +SummaryWidget::SummaryWidget( KOrganizerPlugin *plugin, TQWidget *parent, const char *name ) : Kontact::Summary( parent, name ), mPlugin( plugin ), mCalendar( 0 ) { - QVBoxLayout *mainLayout = new QVBoxLayout( this, 3, 3 ); + TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); - QPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_date", + TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_date", KIcon::Desktop, KIcon::SizeMedium ); - QWidget *header = createHeader( this, icon, i18n( "Calendar" ) ); + TQWidget *header = createHeader( this, icon, i18n( "Calendar" ) ); mainLayout->addWidget( header ); - mLayout = new QGridLayout( mainLayout, 7, 5, 3 ); + mLayout = new TQGridLayout( mainLayout, 7, 5, 3 ); mLayout->setRowStretch( 6, 1 ); mCalendar = KOrg::StdCalendar::self(); mCalendar->load(); - connect( mCalendar, SIGNAL( calendarChanged() ), SLOT( updateView() ) ); - connect( mPlugin->core(), SIGNAL( dayChanged( const QDate& ) ), - SLOT( updateView() ) ); + connect( mCalendar, TQT_SIGNAL( calendarChanged() ), TQT_SLOT( updateView() ) ); + connect( mPlugin->core(), TQT_SIGNAL( dayChanged( const TQDate& ) ), + TQT_SLOT( updateView() ) ); updateView(); } @@ -91,12 +91,12 @@ void SummaryWidget::updateView() config.setGroup( "Calendar" ); int days = config.readNumEntry( "DaysToShow", 1 ); - QLabel *label = 0; + TQLabel *label = 0; int counter = 0; - QPixmap pm = loader.loadIcon( "appointment", KIcon::Small ); + TQPixmap pm = loader.loadIcon( "appointment", KIcon::Small ); - QDate dt; - QDate currentDate = QDate::currentDate(); + TQDate dt; + TQDate currentDate = TQDate::currentDate(); for ( dt=currentDate; dt<=currentDate.addDays( days - 1 ); dt=dt.addDays(1) ) { @@ -108,10 +108,10 @@ void SummaryWidget::updateView() KCal::Event::List events; events.setAutoDelete( true ); - QDateTime qdt; + TQDateTime qdt; // prevent implicitely sharing while finding recurring events - // replacing the QDate with the currentDate + // replacing the TQDate with the currentDate for ( ; it != events_orig.end(); ++it ) { ev = (*it)->clone(); if ( ev->recursOn( dt ) ) { @@ -137,7 +137,7 @@ void SummaryWidget::updateView() // Count number of days remaining in multiday event int span=1; int dayof=1; if ( ev->isMultiDay() ) { - QDate d = ev->dtStart().date(); + TQDate d = ev->dtStart().date(); if ( d < currentDate ) { d = currentDate; } @@ -155,7 +155,7 @@ void SummaryWidget::updateView() if ( ev->isMultiDay() && ev->doesFloat() && dayof != 1 ) continue; // Fill Appointment Pixmap Field - label = new QLabel( this ); + label = new TQLabel( this ); label->setPixmap( pm ); label->setMaximumWidth( label->minimumSizeHint().width() ); label->setAlignment( AlignVCenter ); @@ -164,10 +164,10 @@ void SummaryWidget::updateView() // Fill Event Date Field bool makeBold = false; - QString datestr; + TQString datestr; // Modify event date for printing - QDate sD = QDate::QDate( dt.year(), dt.month(), dt.day() ); + TQDate sD = TQDate::TQDate( dt.year(), dt.month(), dt.day() ); if ( ( sD.month() == currentDate.month() ) && ( sD.day() == currentDate.day() ) ) { datestr = i18n( "Today" ); @@ -187,10 +187,10 @@ void SummaryWidget::updateView() KGlobal::locale()->formatDate( sD.addDays( span-1 ) ); } - label = new QLabel( datestr, this ); + label = new TQLabel( datestr, this ); label->setAlignment( AlignLeft | AlignVCenter ); if ( makeBold ) { - QFont font = label->font(); + TQFont font = label->font(); font.setBold( true ); label->setFont( font ); } @@ -198,9 +198,9 @@ void SummaryWidget::updateView() mLabels.append( label ); // Fill Event Summary Field - QString newtext = ev->summary(); + TQString newtext = ev->summary(); if ( ev->isMultiDay() && !ev->doesFloat() ) { - newtext.append( QString(" (%1/%2)").arg( dayof ).arg( span ) ); + newtext.append( TQString(" (%1/%2)").arg( dayof ).arg( span ) ); } KURLLabel *urlLabel = new KURLLabel( this ); @@ -211,32 +211,32 @@ void SummaryWidget::updateView() mLayout->addWidget( urlLabel, counter, 2 ); mLabels.append( urlLabel ); - connect( urlLabel, SIGNAL( leftClickedURL( const QString& ) ), - this, SLOT( viewEvent( const QString& ) ) ); - connect( urlLabel, SIGNAL( rightClickedURL( const QString& ) ), - this, SLOT( popupMenu( const QString& ) ) ); + connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ), + this, TQT_SLOT( viewEvent( const TQString& ) ) ); + connect( urlLabel, TQT_SIGNAL( rightClickedURL( const TQString& ) ), + this, TQT_SLOT( popupMenu( const TQString& ) ) ); - QString tipText( KCal::IncidenceFormatter::toolTipString( ev, true ) ); + TQString tipText( KCal::IncidenceFormatter::toolTipString( ev, true ) ); if ( !tipText.isEmpty() ) { - QToolTip::add( urlLabel, tipText ); + TQToolTip::add( urlLabel, tipText ); } // Fill Event Time Range Field (only for non-floating Events) if ( !ev->doesFloat() ) { - QTime sST = ev->dtStart().time(); - QTime sET = ev->dtEnd().time(); + TQTime sST = ev->dtStart().time(); + TQTime sET = ev->dtEnd().time(); if ( ev->isMultiDay() ) { if ( ev->dtStart().date() < dt ) { - sST = QTime::QTime( 0, 0 ); + sST = TQTime::TQTime( 0, 0 ); } if ( ev->dtEnd().date() > dt ) { - sET = QTime::QTime( 23, 59 ); + sET = TQTime::TQTime( 23, 59 ); } } datestr = i18n( "Time from - to", "%1 - %2" ) .arg( KGlobal::locale()->formatTime( sST ) ) .arg( KGlobal::locale()->formatTime( sET ) ); - label = new QLabel( datestr, this ); + label = new TQLabel( datestr, this ); label->setAlignment( AlignLeft | AlignVCenter ); mLayout->addWidget( label, counter, 3 ); mLabels.append( label ); @@ -247,7 +247,7 @@ void SummaryWidget::updateView() } if ( !counter ) { - QLabel *noEvents = new QLabel( + TQLabel *noEvents = new TQLabel( i18n( "No appointments pending within the next day", "No appointments pending within the next %n days", days ), this, "nothing to see" ); @@ -260,29 +260,29 @@ void SummaryWidget::updateView() label->show(); } -void SummaryWidget::viewEvent( const QString &uid ) +void SummaryWidget::viewEvent( const TQString &uid ) { mPlugin->core()->selectPlugin( "kontact_korganizerplugin" ); //ensure loaded KOrganizerIface_stub iface( "korganizer", "KOrganizerIface" ); iface.editIncidence( uid ); } -void SummaryWidget::removeEvent( const QString &uid ) +void SummaryWidget::removeEvent( const TQString &uid ) { mPlugin->core()->selectPlugin( "kontact_korganizerplugin" ); //ensure loaded KOrganizerIface_stub iface( "korganizer", "KOrganizerIface" ); iface.deleteIncidence( uid, false ); } -void SummaryWidget::popupMenu( const QString &uid ) +void SummaryWidget::popupMenu( const TQString &uid ) { KPopupMenu popup( this ); - QToolTip::remove( this ); + TQToolTip::remove( this ); popup.insertItem( i18n( "&Edit Appointment..." ), 0 ); popup.insertItem( KGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), i18n( "&Delete Appointment" ), 1 ); - switch ( popup.exec( QCursor::pos() ) ) { + switch ( popup.exec( TQCursor::pos() ) ) { case 0: viewEvent( uid ); break; @@ -292,22 +292,22 @@ void SummaryWidget::popupMenu( const QString &uid ) } } -bool SummaryWidget::eventFilter( QObject *obj, QEvent* e ) +bool SummaryWidget::eventFilter( TQObject *obj, TQEvent* e ) { if ( obj->inherits( "KURLLabel" ) ) { KURLLabel* label = static_cast<KURLLabel*>( obj ); - if ( e->type() == QEvent::Enter ) + if ( e->type() == TQEvent::Enter ) emit message( i18n( "Edit Appointment: \"%1\"" ).arg( label->text() ) ); - if ( e->type() == QEvent::Leave ) - emit message( QString::null ); + if ( e->type() == TQEvent::Leave ) + emit message( TQString::null ); } return Kontact::Summary::eventFilter( obj, e ); } -QStringList SummaryWidget::configModules() const +TQStringList SummaryWidget::configModules() const { - return QStringList( "kcmkorgsummary.desktop" ); + return TQStringList( "kcmkorgsummary.desktop" ); } #include "summarywidget.moc" diff --git a/kontact/plugins/korganizer/summarywidget.h b/kontact/plugins/korganizer/summarywidget.h index c9c572eca..a88d50dd9 100644 --- a/kontact/plugins/korganizer/summarywidget.h +++ b/kontact/plugins/korganizer/summarywidget.h @@ -24,8 +24,8 @@ #ifndef SUMMARYWIDGET_H #define SUMMARYWIDGET_H -#include <qptrlist.h> -#include <qwidget.h> +#include <tqptrlist.h> +#include <tqwidget.h> #include <libkcal/calendarresources.h> @@ -41,29 +41,29 @@ class SummaryWidget : public Kontact::Summary Q_OBJECT public: - SummaryWidget( KOrganizerPlugin *plugin, QWidget *parent, + SummaryWidget( KOrganizerPlugin *plugin, TQWidget *parent, const char *name = 0 ); ~SummaryWidget(); int summaryHeight() const { return 3; } - QStringList configModules() const; + TQStringList configModules() const; public slots: void updateSummary( bool force = false ) { Q_UNUSED( force ); updateView(); } protected: - virtual bool eventFilter( QObject *obj, QEvent* e ); + virtual bool eventFilter( TQObject *obj, TQEvent* e ); private slots: void updateView(); - void popupMenu( const QString &uid ); - void viewEvent( const QString &uid ); - void removeEvent( const QString &uid ); + void popupMenu( const TQString &uid ); + void viewEvent( const TQString &uid ); + void removeEvent( const TQString &uid ); private: KOrganizerPlugin *mPlugin; - QGridLayout *mLayout; + TQGridLayout *mLayout; - QPtrList<QLabel> mLabels; + TQPtrList<TQLabel> mLabels; KCal::CalendarResources *mCalendar; }; diff --git a/kontact/plugins/korganizer/todoplugin.cpp b/kontact/plugins/korganizer/todoplugin.cpp index 4cb281b84..3b6ab214f 100644 --- a/kontact/plugins/korganizer/todoplugin.cpp +++ b/kontact/plugins/korganizer/todoplugin.cpp @@ -22,9 +22,9 @@ without including the source code for Qt in the source distribution. */ -#include <qwidget.h> -#include <qdragobject.h> -#include <qfile.h> +#include <tqwidget.h> +#include <tqdragobject.h> +#include <tqfile.h> #include <kapplication.h> #include <kabc/vcardconverter.h> @@ -54,7 +54,7 @@ typedef KGenericFactory< TodoPlugin, Kontact::Core > TodoPluginFactory; K_EXPORT_COMPONENT_FACTORY( libkontact_todoplugin, TodoPluginFactory( "kontact_todoplugin" ) ) -TodoPlugin::TodoPlugin( Kontact::Core *core, const char *, const QStringList& ) +TodoPlugin::TodoPlugin( Kontact::Core *core, const char *, const TQStringList& ) : Kontact::Plugin( core, core, "korganizer" ), mIface( 0 ) { @@ -62,11 +62,11 @@ TodoPlugin::TodoPlugin( Kontact::Core *core, const char *, const QStringList& ) instance()->iconLoader()->addAppDir("kdepim"); insertNewAction( new KAction( i18n( "New To-do..." ), "newtodo", - CTRL+SHIFT+Key_T, this, SLOT( slotNewTodo() ), actionCollection(), + CTRL+SHIFT+Key_T, this, TQT_SLOT( slotNewTodo() ), actionCollection(), "new_todo" ) ); insertSyncAction( new KAction( i18n( "Synchronize To-do List" ), "reload", - 0, this, SLOT( slotSyncTodos() ), actionCollection(), + 0, this, TQT_SLOT( slotSyncTodos() ), actionCollection(), "todo_sync" ) ); mUniqueAppWatcher = new Kontact::UniqueAppWatcher( @@ -77,7 +77,7 @@ TodoPlugin::~TodoPlugin() { } -Kontact::Summary *TodoPlugin::createSummaryWidget( QWidget *parent ) +Kontact::Summary *TodoPlugin::createSummaryWidget( TQWidget *parent ) { return new TodoSummaryWidget( this, parent ); } @@ -100,9 +100,9 @@ void TodoPlugin::select() interface()->showTodoView(); } -QStringList TodoPlugin::invisibleToolbarActions() const +TQStringList TodoPlugin::invisibleToolbarActions() const { - QStringList invisible; + TQStringList invisible; invisible += "new_event"; invisible += "new_todo"; invisible += "new_journal"; @@ -134,10 +134,10 @@ void TodoPlugin::slotNewTodo() void TodoPlugin::slotSyncTodos() { DCOPRef ref( "kmail", "KMailICalIface" ); - ref.send( "triggerSync", QString("Todo") ); + ref.send( "triggerSync", TQString("Todo") ); } -bool TodoPlugin::createDCOPInterface( const QString& serviceType ) +bool TodoPlugin::createDCOPInterface( const TQString& serviceType ) { kdDebug(5602) << k_funcinfo << serviceType << endl; if ( serviceType == "DCOP/Organizer" || serviceType == "DCOP/Calendar" ) { @@ -148,9 +148,9 @@ bool TodoPlugin::createDCOPInterface( const QString& serviceType ) return false; } -bool TodoPlugin::canDecodeDrag( QMimeSource *mimeSource ) +bool TodoPlugin::canDecodeDrag( TQMimeSource *mimeSource ) { - return QTextDrag::canDecode( mimeSource ) || + return TQTextDrag::canDecode( mimeSource ) || KPIM::MailListDrag::canDecode( mimeSource ); } @@ -159,25 +159,25 @@ bool TodoPlugin::isRunningStandalone() return mUniqueAppWatcher->isRunningStandalone(); } -void TodoPlugin::processDropEvent( QDropEvent *event ) +void TodoPlugin::processDropEvent( TQDropEvent *event ) { - QString text; + TQString text; KABC::VCardConverter converter; if ( KVCardDrag::canDecode( event ) && KVCardDrag::decode( event, text ) ) { KABC::Addressee::List contacts = converter.parseVCards( text ); KABC::Addressee::List::Iterator it; - QStringList attendees; + TQStringList attendees; for ( it = contacts.begin(); it != contacts.end(); ++it ) { - QString email = (*it).fullEmail(); + TQString email = (*it).fullEmail(); if ( email.isEmpty() ) attendees.append( (*it).realName() + "<>" ); else attendees.append( email ); } - interface()->openTodoEditor( i18n( "Meeting" ), QString::null, QString::null, + interface()->openTodoEditor( i18n( "Meeting" ), TQString::null, TQString::null, attendees ); return; } @@ -189,14 +189,14 @@ void TodoPlugin::processDropEvent( QDropEvent *event ) if ( !journals.isEmpty() ) { event->accept(); KCal::Journal *j = journals.first(); - interface()->openTodoEditor( i18n("Note: %1").arg( j->summary() ), j->description(), QString() ); + interface()->openTodoEditor( i18n("Note: %1").arg( j->summary() ), j->description(), TQString() ); return; } // else fall through to text decoding } } - if ( QTextDrag::decode( event, text ) ) { + if ( TQTextDrag::decode( event, text ) ) { interface()->openTodoEditor( text ); return; } @@ -208,17 +208,17 @@ void TodoPlugin::processDropEvent( QDropEvent *event ) i18n("Drops of multiple mails are not supported." ) ); } else { KPIM::MailSummary mail = mails.first(); - QString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() ) + TQString txt = i18n("From: %1\nTo: %2\nSubject: %3").arg( mail.from() ) .arg( mail.to() ).arg( mail.subject() ); KTempFile tf; tf.setAutoDelete( true ); - QString uri = "kmail:" + QString::number( mail.serialNumber() ) + "/" + + TQString uri = "kmail:" + TQString::number( mail.serialNumber() ) + "/" + mail.messageId(); tf.file()->writeBlock( event->encodedData( "message/rfc822" ) ); tf.close(); interface()->openTodoEditor( i18n("Mail: %1").arg( mail.subject() ), txt, - uri, tf.name(), QStringList(), "message/rfc822" ); + uri, tf.name(), TQStringList(), "message/rfc822" ); } return; } diff --git a/kontact/plugins/korganizer/todoplugin.h b/kontact/plugins/korganizer/todoplugin.h index ce0cb5823..5fc13316f 100644 --- a/kontact/plugins/korganizer/todoplugin.h +++ b/kontact/plugins/korganizer/todoplugin.h @@ -35,19 +35,19 @@ class TodoPlugin : public Kontact::Plugin { Q_OBJECT public: - TodoPlugin( Kontact::Core *core, const char *name, const QStringList& ); + TodoPlugin( Kontact::Core *core, const char *name, const TQStringList& ); ~TodoPlugin(); - virtual bool createDCOPInterface( const QString& serviceType ); + virtual bool createDCOPInterface( const TQString& serviceType ); virtual bool isRunningStandalone(); int weight() const { return 450; } - bool canDecodeDrag( QMimeSource * ); - void processDropEvent( QDropEvent * ); + bool canDecodeDrag( TQMimeSource * ); + void processDropEvent( TQDropEvent * ); - virtual QStringList invisibleToolbarActions() const; + virtual TQStringList invisibleToolbarActions() const; - virtual Kontact::Summary *createSummaryWidget( QWidget *parent ); + virtual Kontact::Summary *createSummaryWidget( TQWidget *parent ); void select(); diff --git a/kontact/plugins/korganizer/todosummarywidget.cpp b/kontact/plugins/korganizer/todosummarywidget.cpp index d52941ee4..e58ee6aa0 100644 --- a/kontact/plugins/korganizer/todosummarywidget.cpp +++ b/kontact/plugins/korganizer/todosummarywidget.cpp @@ -21,10 +21,10 @@ without including the source code for Qt in the source distribution. */ -#include <qcursor.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qtooltip.h> +#include <tqcursor.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqtooltip.h> #include <kdialog.h> #include <kglobal.h> @@ -53,25 +53,25 @@ #include "todosummarywidget.h" TodoSummaryWidget::TodoSummaryWidget( TodoPlugin *plugin, - QWidget *parent, const char *name ) + TQWidget *parent, const char *name ) : Kontact::Summary( parent, name ), mPlugin( plugin ) { - QVBoxLayout *mainLayout = new QVBoxLayout( this, 3, 3 ); + TQVBoxLayout *mainLayout = new TQVBoxLayout( this, 3, 3 ); - QPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_todo", + TQPixmap icon = KGlobal::iconLoader()->loadIcon( "kontact_todo", KIcon::Desktop, KIcon::SizeMedium ); - QWidget *header = createHeader( this, icon, i18n( "To-do" ) ); + TQWidget *header = createHeader( this, icon, i18n( "To-do" ) ); mainLayout->addWidget( header ); - mLayout = new QGridLayout( mainLayout, 7, 4, 3 ); + mLayout = new TQGridLayout( mainLayout, 7, 4, 3 ); mLayout->setRowStretch( 6, 1 ); mCalendar = KOrg::StdCalendar::self(); mCalendar->load(); - connect( mCalendar, SIGNAL( calendarChanged() ), SLOT( updateView() ) ); - connect( mPlugin->core(), SIGNAL( dayChanged( const QDate& ) ), - SLOT( updateView() ) ); + connect( mCalendar, TQT_SIGNAL( calendarChanged() ), TQT_SLOT( updateView() ) ); + connect( mPlugin->core(), TQT_SIGNAL( dayChanged( const TQDate& ) ), + TQT_SLOT( updateView() ) ); updateView(); } @@ -92,19 +92,19 @@ void TodoSummaryWidget::updateView() KIconLoader loader( "kdepim" ); - QLabel *label = 0; + TQLabel *label = 0; int counter = 0; - QDate currentDate = QDate::currentDate(); + TQDate currentDate = TQDate::currentDate(); KCal::Todo::List todos = mCalendar->todos(); if ( todos.count() > 0 ) { - QPixmap pm = loader.loadIcon( "todo", KIcon::Small ); + TQPixmap pm = loader.loadIcon( "todo", KIcon::Small ); KCal::Todo::List::ConstIterator it; for ( it = todos.begin(); it != todos.end(); ++it ) { KCal::Todo *todo = *it; bool accepted = false; - QString stateText; + TQString stateText; // show all incomplete todos if ( showAllTodos && !todo->isCompleted()) @@ -140,19 +140,19 @@ void TodoSummaryWidget::updateView() if ( !accepted ) continue; - label = new QLabel( this ); + label = new TQLabel( this ); label->setPixmap( pm ); - label->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ); + label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); mLayout->addWidget( label, counter, 0 ); mLabels.append( label ); - label = new QLabel( QString::number( todo->percentComplete() ) + "%", this ); + label = new TQLabel( TQString::number( todo->percentComplete() ) + "%", this ); label->setAlignment( AlignHCenter | AlignVCenter ); - label->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ); + label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); mLayout->addWidget( label, counter, 1 ); mLabels.append( label ); - QString sSummary = todo->summary(); + TQString sSummary = todo->summary(); if ( todo->relatedTo() ) { // show parent only, not entire ancestry sSummary = todo->relatedTo()->summary() + ":" + todo->summary(); } @@ -164,19 +164,19 @@ void TodoSummaryWidget::updateView() mLayout->addWidget( urlLabel, counter, 2 ); mLabels.append( urlLabel ); - connect( urlLabel, SIGNAL( leftClickedURL( const QString& ) ), - this, SLOT( viewTodo( const QString& ) ) ); - connect( urlLabel, SIGNAL( rightClickedURL( const QString& ) ), - this, SLOT( popupMenu( const QString& ) ) ); + connect( urlLabel, TQT_SIGNAL( leftClickedURL( const TQString& ) ), + this, TQT_SLOT( viewTodo( const TQString& ) ) ); + connect( urlLabel, TQT_SIGNAL( rightClickedURL( const TQString& ) ), + this, TQT_SLOT( popupMenu( const TQString& ) ) ); - QString tipText( KCal::IncidenceFormatter::toolTipString( todo, true ) ); + TQString tipText( KCal::IncidenceFormatter::toolTipString( todo, true ) ); if ( !tipText.isEmpty() ) { - QToolTip::add( urlLabel, tipText ); + TQToolTip::add( urlLabel, tipText ); } - label = new QLabel( stateText, this ); + label = new TQLabel( stateText, this ); label->setAlignment( AlignLeft | AlignVCenter ); - label->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum ); + label->setSizePolicy( TQSizePolicy::Maximum, TQSizePolicy::Maximum ); mLayout->addWidget( label, counter, 3 ); mLabels.append( label ); @@ -185,7 +185,7 @@ void TodoSummaryWidget::updateView() } if ( counter == 0 ) { - QLabel *noTodos = new QLabel( i18n( "No to-dos pending" ), this ); + TQLabel *noTodos = new TQLabel( i18n( "No to-dos pending" ), this ); noTodos->setAlignment( AlignHCenter | AlignVCenter ); mLayout->addWidget( noTodos, 0, 1 ); mLabels.append( noTodos ); @@ -195,27 +195,27 @@ void TodoSummaryWidget::updateView() label->show(); } -void TodoSummaryWidget::viewTodo( const QString &uid ) +void TodoSummaryWidget::viewTodo( const TQString &uid ) { mPlugin->core()->selectPlugin( "kontact_todoplugin" );//ensure loaded KOrganizerIface_stub iface( "korganizer", "KOrganizerIface" ); iface.editIncidence( uid ); } -void TodoSummaryWidget::removeTodo( const QString &uid ) +void TodoSummaryWidget::removeTodo( const TQString &uid ) { mPlugin->core()->selectPlugin( "kontact_todoplugin" );//ensure loaded KOrganizerIface_stub iface( "korganizer", "KOrganizerIface" ); iface.deleteIncidence( uid, false ); } -void TodoSummaryWidget::completeTodo( const QString &uid ) +void TodoSummaryWidget::completeTodo( const TQString &uid ) { KCal::Todo *todo = mCalendar->todo( uid ); IncidenceChanger *changer = new IncidenceChanger( mCalendar, this ); if ( !todo->isReadOnly() && changer->beginChange( todo ) ) { KCal::Todo *oldTodo = todo->clone(); - todo->setCompleted( QDateTime::currentDateTime() ); + todo->setCompleted( TQDateTime::currentDateTime() ); changer->changeIncidence( oldTodo, todo, KOGlobals::COMPLETION_MODIFIED ); changer->endChange( todo ); delete oldTodo; @@ -223,10 +223,10 @@ void TodoSummaryWidget::completeTodo( const QString &uid ) } } -void TodoSummaryWidget::popupMenu( const QString &uid ) +void TodoSummaryWidget::popupMenu( const TQString &uid ) { KPopupMenu popup( this ); - QToolTip::remove( this ); + TQToolTip::remove( this ); popup.insertItem( i18n( "&Edit To-do..." ), 0 ); popup.insertItem( KGlobal::iconLoader()->loadIcon( "editdelete", KIcon::Small), i18n( "&Delete To-do" ), 1 ); @@ -236,7 +236,7 @@ void TodoSummaryWidget::popupMenu( const QString &uid ) i18n( "&Mark To-do Completed" ), 2 ); } - switch ( popup.exec( QCursor::pos() ) ) { + switch ( popup.exec( TQCursor::pos() ) ) { case 0: viewTodo( uid ); break; @@ -249,22 +249,22 @@ void TodoSummaryWidget::popupMenu( const QString &uid ) } } -bool TodoSummaryWidget::eventFilter( QObject *obj, QEvent* e ) +bool TodoSummaryWidget::eventFilter( TQObject *obj, TQEvent* e ) { if ( obj->inherits( "KURLLabel" ) ) { KURLLabel* label = static_cast<KURLLabel*>( obj ); - if ( e->type() == QEvent::Enter ) + if ( e->type() == TQEvent::Enter ) emit message( i18n( "Edit To-do: \"%1\"" ).arg( label->text() ) ); - if ( e->type() == QEvent::Leave ) - emit message( QString::null ); + if ( e->type() == TQEvent::Leave ) + emit message( TQString::null ); } return Kontact::Summary::eventFilter( obj, e ); } -QStringList TodoSummaryWidget::configModules() const +TQStringList TodoSummaryWidget::configModules() const { - return QStringList( "kcmtodosummary.desktop" ); + return TQStringList( "kcmtodosummary.desktop" ); } #include "todosummarywidget.moc" diff --git a/kontact/plugins/korganizer/todosummarywidget.h b/kontact/plugins/korganizer/todosummarywidget.h index d5aca429e..029dec9a7 100644 --- a/kontact/plugins/korganizer/todosummarywidget.h +++ b/kontact/plugins/korganizer/todosummarywidget.h @@ -24,8 +24,8 @@ #ifndef TODO_SUMMARYWIDGET_H #define TODO_SUMMARYWIDGET_H -#include <qptrlist.h> -#include <qwidget.h> +#include <tqptrlist.h> +#include <tqwidget.h> #include <libkcal/calendarresources.h> @@ -41,31 +41,31 @@ class TodoSummaryWidget : public Kontact::Summary Q_OBJECT public: - TodoSummaryWidget( TodoPlugin *plugin, QWidget *parent, + TodoSummaryWidget( TodoPlugin *plugin, TQWidget *parent, const char *name = 0 ); ~TodoSummaryWidget(); int summaryHeight() const { return 3; } - QStringList configModules() const; + TQStringList configModules() const; public slots: void updateSummary( bool force = false ) { Q_UNUSED( force ); updateView(); } protected: - virtual bool eventFilter( QObject *obj, QEvent* e ); + virtual bool eventFilter( TQObject *obj, TQEvent* e ); private slots: void updateView(); - void popupMenu( const QString &uid ); - void viewTodo( const QString &uid ); - void removeTodo( const QString &uid ); - void completeTodo( const QString &uid ); + void popupMenu( const TQString &uid ); + void viewTodo( const TQString &uid ); + void removeTodo( const TQString &uid ); + void completeTodo( const TQString &uid ); private: TodoPlugin *mPlugin; - QGridLayout *mLayout; + TQGridLayout *mLayout; - QPtrList<QLabel> mLabels; + TQPtrList<TQLabel> mLabels; KCal::CalendarResources *mCalendar; }; |