summaryrefslogtreecommitdiffstats
path: root/korganizer/kotodoeditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/kotodoeditor.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'korganizer/kotodoeditor.cpp')
-rw-r--r--korganizer/kotodoeditor.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp
index a4e5f11c8..fe749c9c9 100644
--- a/korganizer/kotodoeditor.cpp
+++ b/korganizer/kotodoeditor.cpp
@@ -24,11 +24,11 @@
without including the source code for Qt in the source distribution.
*/
-#include <qtooltip.h>
-#include <qframe.h>
-#include <qpixmap.h>
-#include <qlayout.h>
-#include <qdatetime.h>
+#include <tqtooltip.h>
+#include <tqframe.h>
+#include <tqpixmap.h>
+#include <tqlayout.h>
+#include <tqdatetime.h>
#include <kiconloader.h>
#include <klocale.h>
@@ -51,8 +51,8 @@
#include "kotodoeditor.h"
#include "kocore.h"
-KOTodoEditor::KOTodoEditor( Calendar *calendar, QWidget *parent ) :
- KOIncidenceEditor( QString::null, calendar, parent )
+KOTodoEditor::KOTodoEditor( Calendar *calendar, TQWidget *parent ) :
+ KOIncidenceEditor( TQString::null, calendar, parent )
{
mTodo = 0;
mCalendar = 0;
@@ -72,16 +72,16 @@ void KOTodoEditor::init()
setupAttendeesTab();
// setupAttachmentsTab();
- connect( mGeneral, SIGNAL( dateTimeStrChanged( const QString & ) ),
- mRecurrence, SLOT( setDateTimeStr( const QString & ) ) );
- connect( mGeneral, SIGNAL( signalDateTimeChanged( const QDateTime &, const QDateTime & ) ),
- mRecurrence, SLOT( setDateTimes( const QDateTime &, const QDateTime & ) ) );
+ connect( mGeneral, TQT_SIGNAL( dateTimeStrChanged( const TQString & ) ),
+ mRecurrence, TQT_SLOT( setDateTimeStr( const TQString & ) ) );
+ connect( mGeneral, TQT_SIGNAL( signalDateTimeChanged( const TQDateTime &, const TQDateTime & ) ),
+ mRecurrence, TQT_SLOT( setDateTimes( const TQDateTime &, const TQDateTime & ) ) );
- connect( mGeneral, SIGNAL( openCategoryDialog() ),
- SIGNAL( editCategories() ) );
+ connect( mGeneral, TQT_SIGNAL( openCategoryDialog() ),
+ TQT_SIGNAL( editCategories() ) );
- connect( mDetails, SIGNAL(updateAttendeeSummary(int)),
- mGeneral, SLOT(updateAttendeeSummary(int)) );
+ connect( mDetails, TQT_SIGNAL(updateAttendeeSummary(int)),
+ mGeneral, TQT_SLOT(updateAttendeeSummary(int)) );
}
void KOTodoEditor::reload()
@@ -94,25 +94,25 @@ void KOTodoEditor::setupGeneral()
mGeneral = new KOEditorGeneralTodo(this);
if (KOPrefs::instance()->mCompactDialogs) {
- QFrame *topFrame = addPage(i18n("General"));
+ TQFrame *topFrame = addPage(i18n("General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ TQBoxLayout *topLayout = new TQVBoxLayout(topFrame);
topLayout->setMargin(marginHint());
topLayout->setSpacing(spacingHint());
mGeneral->initHeader( topFrame, topLayout );
mGeneral->initTime(topFrame,topLayout);
- QHBoxLayout *priorityLayout = new QHBoxLayout( topLayout );
+ TQHBoxLayout *priorityLayout = new TQHBoxLayout( topLayout );
mGeneral->initPriority(topFrame,priorityLayout);
topLayout->addStretch(1);
- QFrame *topFrame2 = addPage(i18n("Details"));
+ TQFrame *topFrame2 = addPage(i18n("Details"));
- QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2);
+ TQBoxLayout *topLayout2 = new TQVBoxLayout(topFrame2);
topLayout2->setMargin(marginHint());
topLayout2->setSpacing(spacingHint());
- QHBoxLayout *completionLayout = new QHBoxLayout( topLayout2 );
+ TQHBoxLayout *completionLayout = new TQHBoxLayout( topLayout2 );
mGeneral->initCompletion(topFrame2,completionLayout);
mGeneral->initAlarm(topFrame,topLayout);
@@ -120,23 +120,23 @@ void KOTodoEditor::setupGeneral()
mGeneral->initSecrecy( topFrame2, topLayout2 );
mGeneral->initDescription(topFrame2,topLayout2);
} else {
- QFrame *topFrame = addPage(i18n("&General"));
+ TQFrame *topFrame = addPage(i18n("&General"));
- QBoxLayout *topLayout = new QVBoxLayout(topFrame);
+ TQBoxLayout *topLayout = new TQVBoxLayout(topFrame);
topLayout->setSpacing(spacingHint());
mGeneral->initHeader( topFrame, topLayout );
mGeneral->initTime(topFrame,topLayout);
mGeneral->initStatus(topFrame,topLayout);
- QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout);
+ TQBoxLayout *alarmLineLayout = new TQHBoxLayout(topLayout);
mGeneral->initAlarm(topFrame,alarmLineLayout);
alarmLineLayout->addStretch( 1 );
mGeneral->initDescription(topFrame,topLayout);
mGeneral->initAttachments(topFrame,topLayout);
- connect( mGeneral, SIGNAL( openURL( const KURL& ) ),
- this, SLOT( openURL( const KURL& ) ) );
- connect( this, SIGNAL( signalAddAttachments( const QStringList&, const QStringList&, bool ) ),
- mGeneral, SLOT( addAttachments( const QStringList&, const QStringList&, bool ) ) );
+ connect( mGeneral, TQT_SIGNAL( openURL( const KURL& ) ),
+ this, TQT_SLOT( openURL( const KURL& ) ) );
+ connect( this, TQT_SIGNAL( signalAddAttachments( const TQStringList&, const TQStringList&, bool ) ),
+ mGeneral, TQT_SLOT( addAttachments( const TQStringList&, const TQStringList&, bool ) ) );
}
mGeneral->enableAlarm( true );
@@ -145,16 +145,16 @@ void KOTodoEditor::setupGeneral()
void KOTodoEditor::setupRecurrence()
{
- QFrame *topFrame = addPage( i18n("Rec&urrence") );
+ TQFrame *topFrame = addPage( i18n("Rec&urrence") );
- QBoxLayout *topLayout = new QVBoxLayout( topFrame );
+ TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
mRecurrence = new KOEditorRecurrence( topFrame );
topLayout->addWidget( mRecurrence );
mRecurrence->setEnabled( false );
- connect(mGeneral,SIGNAL(dueDateEditToggle( bool ) ),
- mRecurrence, SLOT( setEnabled( bool ) ) );
+ connect(mGeneral,TQT_SIGNAL(dueDateEditToggle( bool ) ),
+ mRecurrence, TQT_SLOT( setEnabled( bool ) ) );
}
void KOTodoEditor::editIncidence(Incidence *incidence, Calendar *calendar)
@@ -183,7 +183,7 @@ void KOTodoEditor::newTodo()
loadDefaults();
}
-void KOTodoEditor::setTexts( const QString &summary, const QString &description )
+void KOTodoEditor::setTexts( const TQString &summary, const TQString &description )
{
if ( description.isEmpty() && summary.contains("\n") ) {
mGeneral->setDescription( summary );
@@ -200,7 +200,7 @@ void KOTodoEditor::setTexts( const QString &summary, const QString &description
void KOTodoEditor::loadDefaults()
{
kdDebug(5850) << k_funcinfo << endl;
- setDates( QDateTime::currentDateTime().addDays(7), true, 0 );
+ setDates( TQDateTime::currentDateTime().addDays(7), true, 0 );
mGeneral->toggleAlarm( true );
}
@@ -256,7 +256,7 @@ void KOTodoEditor::deleteTodo()
reject();
}
-void KOTodoEditor::setDates( const QDateTime &due, bool allDay, Todo *relatedEvent )
+void KOTodoEditor::setDates( const TQDateTime &due, bool allDay, Todo *relatedEvent )
{
mRelatedTodo = relatedEvent;
@@ -274,7 +274,7 @@ void KOTodoEditor::setDates( const QDateTime &due, bool allDay, Todo *relatedEve
if ( mTodo )
mRecurrence->setDefaults( mTodo->dtStart(), due, false );
else
- mRecurrence->setDefaults( QDateTime::currentDateTime(), due, false );
+ mRecurrence->setDefaults( TQDateTime::currentDateTime(), due, false );
}
void KOTodoEditor::readTodo( Todo *todo, Calendar *calendar )
@@ -346,14 +346,14 @@ void KOTodoEditor::loadTemplate( /*const*/ CalendarLocal& cal )
}
}
-void KOTodoEditor::slotSaveTemplate( const QString &templateName )
+void KOTodoEditor::slotSaveTemplate( const TQString &templateName )
{
Todo *todo = new Todo;
writeTodo( todo );
saveAsTemplate( todo, templateName );
}
-QStringList& KOTodoEditor::templates() const
+TQStringList& KOTodoEditor::templates() const
{
return KOPrefs::instance()->mTodoTemplates;
}