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 /kfile-plugins/ics | |
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 'kfile-plugins/ics')
-rw-r--r-- | kfile-plugins/ics/kfile_ics.cpp | 36 | ||||
-rw-r--r-- | kfile-plugins/ics/kfile_ics.h | 2 |
2 files changed, 19 insertions, 19 deletions
diff --git a/kfile-plugins/ics/kfile_ics.cpp b/kfile-plugins/ics/kfile_ics.cpp index a78ec0400..0d85344e7 100644 --- a/kfile-plugins/ics/kfile_ics.cpp +++ b/kfile-plugins/ics/kfile_ics.cpp @@ -18,8 +18,8 @@ t it will be useful, * */ -#include <qdatetime.h> -#include <qfile.h> +#include <tqdatetime.h> +#include <tqfile.h> #include <libkcal/calendarlocal.h> #include <libkcal/todo.h> @@ -33,7 +33,7 @@ using namespace KCal; typedef KGenericFactory<ICSPlugin> ICSFactory; K_EXPORT_COMPONENT_FACTORY(kfile_ics, ICSFactory( "kfile_ics" )) -ICSPlugin::ICSPlugin( QObject *parent, const char *name, const QStringList& args ) +ICSPlugin::ICSPlugin( TQObject *parent, const char *name, const TQStringList& args ) : KFilePlugin( parent, name, args ) { KFileMimeTypeInfo* info = addMimeTypeInfo( "text/calendar" ); //TODO: vcs !! @@ -41,13 +41,13 @@ ICSPlugin::ICSPlugin( QObject *parent, const char *name, const QStringList& args KFileMimeTypeInfo::GroupInfo* group = 0L; group = addGroupInfo(info, "ICSInfo", i18n("Calendar Statistics")); - addItemInfo( group, "ProductID", i18n("Product ID"), QVariant::String ); - addItemInfo( group, "Events", i18n("Events"), QVariant::Int ); - addItemInfo( group, "Todos", i18n("To-dos"), QVariant::Int ); - addItemInfo( group, "TodoCompleted", i18n("Completed To-dos"), QVariant::Int ); - addItemInfo( group, "TodoOverdue", i18n("Overdue To-dos"), QVariant::Int ); - addItemInfo( group, "Journals", i18n("Journals"), QVariant::Int ); -// addItemInfo( group, "Reminders", i18n("Reminders"), QVariant::Int ); + addItemInfo( group, "ProductID", i18n("Product ID"), TQVariant::String ); + addItemInfo( group, "Events", i18n("Events"), TQVariant::Int ); + addItemInfo( group, "Todos", i18n("To-dos"), TQVariant::Int ); + addItemInfo( group, "TodoCompleted", i18n("Completed To-dos"), TQVariant::Int ); + addItemInfo( group, "TodoOverdue", i18n("Overdue To-dos"), TQVariant::Int ); + addItemInfo( group, "Journals", i18n("Journals"), TQVariant::Int ); +// addItemInfo( group, "Reminders", i18n("Reminders"), TQVariant::Int ); } @@ -59,15 +59,15 @@ bool ICSPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) { KFileMetaInfoGroup group = appendGroup( info, "ICSInfo"); - CalendarLocal cal ( QString::fromLatin1( "UTC" ) ); + CalendarLocal cal ( TQString::fromLatin1( "UTC" ) ); if( !cal.load( info.path() ) ) { kdDebug() << "Could not load calendar" << endl; return false; } - appendItem( group, "ProductID", QVariant( cal.productId() ) ); - appendItem( group, "Events", QVariant( int( cal.events().count() ) ) ); - appendItem( group, "Journals", QVariant( int( cal.journals().count() ) ) ); + appendItem( group, "ProductID", TQVariant( cal.productId() ) ); + appendItem( group, "Events", TQVariant( int( cal.events().count() ) ) ); + appendItem( group, "Journals", TQVariant( int( cal.journals().count() ) ) ); Todo::List todos = cal.todos(); // count completed and overdue @@ -80,13 +80,13 @@ bool ICSPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ ) Todo *todo = *it; if ( todo->isCompleted() ) ++completed; - else if ( todo->hasDueDate() && todo->dtDue().date() < QDate::currentDate() ) + else if ( todo->hasDueDate() && todo->dtDue().date() < TQDate::currentDate() ) ++overdue; } - appendItem( group, "Todos", QVariant( int(todos.count() ) ) ); - appendItem( group, "TodoCompleted", QVariant( completed ) ); - appendItem( group, "TodoOverdue", QVariant( overdue ) ); + appendItem( group, "Todos", TQVariant( int(todos.count() ) ) ); + appendItem( group, "TodoCompleted", TQVariant( completed ) ); + appendItem( group, "TodoOverdue", TQVariant( overdue ) ); cal.close(); diff --git a/kfile-plugins/ics/kfile_ics.h b/kfile-plugins/ics/kfile_ics.h index 27e7e43db..50f0b84c7 100644 --- a/kfile-plugins/ics/kfile_ics.h +++ b/kfile-plugins/ics/kfile_ics.h @@ -28,7 +28,7 @@ class ICSPlugin : public KFilePlugin { Q_OBJECT public: - ICSPlugin( QObject *parent, const char *name, const QStringList& args ); + ICSPlugin( TQObject *parent, const char *name, const TQStringList& args ); virtual bool readInfo( KFileMetaInfo& info, uint what ); }; |