summaryrefslogtreecommitdiffstats
path: root/korganizer/koeditoralarms.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/koeditoralarms.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/koeditoralarms.cpp')
-rw-r--r--korganizer/koeditoralarms.cpp90
1 files changed, 45 insertions, 45 deletions
diff --git a/korganizer/koeditoralarms.cpp b/korganizer/koeditoralarms.cpp
index e14581e4d..0a2c7399a 100644
--- a/korganizer/koeditoralarms.cpp
+++ b/korganizer/koeditoralarms.cpp
@@ -26,15 +26,15 @@
#include "koeditoralarms_base.h"
#include "koeditoralarms.h"
-#include <qlayout.h>
-#include <qlistview.h>
-#include <qpushbutton.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qbuttongroup.h>
-#include <qtextedit.h>
-#include <qwidgetstack.h>
+#include <tqlayout.h>
+#include <tqlistview.h>
+#include <tqpushbutton.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqbuttongroup.h>
+#include <tqtextedit.h>
+#include <tqwidgetstack.h>
#include <kurlrequester.h>
#include <klocale.h>
@@ -48,7 +48,7 @@
class AlarmListViewItem : public QListViewItem
{
public:
- AlarmListViewItem( QListView *parent, KCal::Alarm *alarm );
+ AlarmListViewItem( TQListView *parent, KCal::Alarm *alarm );
virtual ~AlarmListViewItem();
KCal::Alarm *alarm() const { return mAlarm; }
void construct();
@@ -57,8 +57,8 @@ class AlarmListViewItem : public QListViewItem
KCal::Alarm *mAlarm;
};
-AlarmListViewItem::AlarmListViewItem( QListView *parent, KCal::Alarm *alarm )
- : QListViewItem( parent )
+AlarmListViewItem::AlarmListViewItem( TQListView *parent, KCal::Alarm *alarm )
+ : TQListViewItem( parent )
{
if ( alarm ) {
mAlarm = new KCal::Alarm( *alarm );
@@ -77,7 +77,7 @@ void AlarmListViewItem::construct()
{
if ( mAlarm ) {
// Alarm type:
- QString type;
+ TQString type;
switch ( mAlarm->type() ) {
case KCal::Alarm::Display:
type = i18n("Reminder Dialog");
@@ -98,7 +98,7 @@ void AlarmListViewItem::construct()
setText( ColAlarmType, type );
// Alarm offset:
- QString offsetstr;
+ TQString offsetstr;
int offset = 0;
if ( mAlarm->hasStartOffset() ) {
offset = mAlarm->startOffset().asSeconds();
@@ -143,32 +143,32 @@ void AlarmListViewItem::construct()
}
-KOEditorAlarms::KOEditorAlarms( KCal::Alarm::List *alarms, QWidget *parent,
+KOEditorAlarms::KOEditorAlarms( KCal::Alarm::List *alarms, TQWidget *parent,
const char *name )
: KDialogBase( parent, name, true, i18n("Edit Reminders"), Ok | Cancel ), mAlarms( alarms ),mCurrentItem(0L)
{
setMainWidget( mWidget = new KOEditorAlarms_base( this ) );
- mWidget->mAlarmList->setColumnWidthMode( 0, QListView::Maximum );
- mWidget->mAlarmList->setColumnWidthMode( 1, QListView::Maximum );
- connect( mWidget->mAlarmList, SIGNAL( selectionChanged( QListViewItem * ) ),
- SLOT( selectionChanged( QListViewItem * ) ) );
- connect( mWidget->mAddButton, SIGNAL( clicked() ), SLOT( slotAdd() ) );
- connect( mWidget->mRemoveButton, SIGNAL( clicked() ), SLOT( slotRemove() ) );
- connect( mWidget->mDuplicateButton, SIGNAL( clicked() ), SLOT( slotDuplicate() ) );
-
- connect( mWidget->mAlarmOffset, SIGNAL( valueChanged( int ) ), SLOT( changed() ) );
- connect( mWidget->mOffsetUnit, SIGNAL( activated( int ) ), SLOT( changed() ) );
- connect( mWidget->mBeforeAfter, SIGNAL( activated( int ) ), SLOT( changed() ) );
- connect( mWidget->mRepeats, SIGNAL( toggled( bool ) ), SLOT( changed() ) );
- connect( mWidget->mRepeatCount, SIGNAL( valueChanged( int ) ), SLOT( changed() ) );
- connect( mWidget->mRepeatInterval, SIGNAL( valueChanged( int ) ), SLOT( changed() ) );
- connect( mWidget->mAlarmType, SIGNAL(clicked(int)), SLOT( changed() ) );
- connect( mWidget->mDisplayText, SIGNAL( textChanged() ), SLOT( changed() ) );
- connect( mWidget->mSoundFile, SIGNAL( textChanged( const QString & ) ), SLOT( changed() ) );
- connect( mWidget->mApplication, SIGNAL( textChanged( const QString & ) ), SLOT( changed() ) );
- connect( mWidget->mAppArguments, SIGNAL( textChanged( const QString & ) ), SLOT( changed() ) );
- connect( mWidget->mEmailAddress, SIGNAL( textChanged( const QString & ) ), SLOT( changed() ) );
- connect( mWidget->mEmailText, SIGNAL( textChanged() ), SLOT( changed() ) );
+ mWidget->mAlarmList->setColumnWidthMode( 0, TQListView::Maximum );
+ mWidget->mAlarmList->setColumnWidthMode( 1, TQListView::Maximum );
+ connect( mWidget->mAlarmList, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ),
+ TQT_SLOT( selectionChanged( TQListViewItem * ) ) );
+ connect( mWidget->mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotAdd() ) );
+ connect( mWidget->mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotRemove() ) );
+ connect( mWidget->mDuplicateButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotDuplicate() ) );
+
+ connect( mWidget->mAlarmOffset, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mOffsetUnit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mBeforeAfter, TQT_SIGNAL( activated( int ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mRepeats, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mRepeatCount, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mRepeatInterval, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mAlarmType, TQT_SIGNAL(clicked(int)), TQT_SLOT( changed() ) );
+ connect( mWidget->mDisplayText, TQT_SIGNAL( textChanged() ), TQT_SLOT( changed() ) );
+ connect( mWidget->mSoundFile, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mApplication, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mAppArguments, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mEmailAddress, TQT_SIGNAL( textChanged( const TQString & ) ), TQT_SLOT( changed() ) );
+ connect( mWidget->mEmailText, TQT_SIGNAL( textChanged() ), TQT_SLOT( changed() ) );
init();
}
@@ -244,9 +244,9 @@ void KOEditorAlarms::readAlarm( KCal::Alarm *alarm )
break;
case KCal::Alarm::Email: {
mWidget->mAlarmType->setButton( 3 );
- QValueList<KCal::Person> addresses = alarm->mailAddresses();
- QStringList add;
- for ( QValueList<KCal::Person>::ConstIterator it = addresses.begin();
+ TQValueList<KCal::Person> addresses = alarm->mailAddresses();
+ TQStringList add;
+ for ( TQValueList<KCal::Person>::ConstIterator it = addresses.begin();
it != addresses.end(); ++it ) {
add << (*it).fullName();
}
@@ -303,14 +303,14 @@ void KOEditorAlarms::writeAlarm( KCal::Alarm *alarm )
alarm->setProcedureAlarm( mWidget->mApplication->url(), mWidget->mAppArguments->text() );
break;
case 3: { // Email
- QStringList addresses = KPIM::splitEmailAddrList( mWidget->mEmailAddress->text() );
- QValueList<KCal::Person> add;
- for ( QStringList::Iterator it = addresses.begin(); it != addresses.end();
+ TQStringList addresses = KPIM::splitEmailAddrList( mWidget->mEmailAddress->text() );
+ TQValueList<KCal::Person> add;
+ for ( TQStringList::Iterator it = addresses.begin(); it != addresses.end();
++it ) {
add << KCal::Person( *it );
}
// TODO: Add a subject line and possibilities for attachments
- alarm->setEmailAlarm( QString::null, mWidget->mEmailText->text(),
+ alarm->setEmailAlarm( TQString::null, mWidget->mEmailText->text(),
add );
break; }
case 0: // Display
@@ -320,7 +320,7 @@ void KOEditorAlarms::writeAlarm( KCal::Alarm *alarm )
}
}
-void KOEditorAlarms::selectionChanged( QListViewItem *listviewitem )
+void KOEditorAlarms::selectionChanged( TQListViewItem *listviewitem )
{
AlarmListViewItem *item = dynamic_cast<AlarmListViewItem*>(listviewitem);
mCurrentItem = item;
@@ -336,7 +336,7 @@ void KOEditorAlarms::slotOk()
// copy the mAlarms list
if ( mAlarms ) {
mAlarms->clear();
- QListViewItemIterator it( mWidget->mAlarmList );
+ TQListViewItemIterator it( mWidget->mAlarmList );
while ( it.current() ) {
AlarmListViewItem *item = dynamic_cast<AlarmListViewItem*>(*it);
if ( item ) {