summaryrefslogtreecommitdiffstats
path: root/korganizer/koattendeeeditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /korganizer/koattendeeeditor.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/koattendeeeditor.cpp')
-rw-r--r--korganizer/koattendeeeditor.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/korganizer/koattendeeeditor.cpp b/korganizer/koattendeeeditor.cpp
index 548e6acb1..d24a8812b 100644
--- a/korganizer/koattendeeeditor.cpp
+++ b/korganizer/koattendeeeditor.cpp
@@ -55,15 +55,15 @@
using namespace KCal;
-KOAttendeeEditor::KOAttendeeEditor( TQWidget * parent, const char *name ) :
- TQWidget( parent, name ),
+KOAttendeeEditor::KOAttendeeEditor( TQWidget * tqparent, const char *name ) :
+ TQWidget( tqparent, name ),
mDisableItemUpdate( true )
{
}
-void KOAttendeeEditor::initOrganizerWidgets(TQWidget * parent, TQBoxLayout * tqlayout)
+void KOAttendeeEditor::initOrganizerWidgets(TQWidget * tqparent, TQBoxLayout * tqlayout)
{
- mOrganizerHBox = new TQHBox( parent );
+ mOrganizerHBox = new TQHBox( tqparent );
tqlayout->addWidget( mOrganizerHBox );
// If creating a new event, then the user is the organizer -> show the
// identity combo
@@ -91,7 +91,7 @@ void KOAttendeeEditor::initOrganizerWidgets(TQWidget * parent, TQBoxLayout * tql
mOrganizerHBox->setStretchFactor( mOrganizerCombo, 100 );
}
-void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout)
+void KOAttendeeEditor::initEditWidgets(TQWidget * tqparent, TQBoxLayout * tqlayout)
{
TQGridLayout *topLayout = new TQGridLayout();
tqlayout->addLayout( topLayout );
@@ -99,12 +99,12 @@ void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout
TQString whatsThis = i18n("Edits the name of the attendee selected in the list "
"above, or adds a new attendee if there are no attendees"
"in the list.");
- TQLabel *attendeeLabel = new TQLabel( parent );
+ TQLabel *attendeeLabel = new TQLabel( tqparent );
TQWhatsThis::add( attendeeLabel, whatsThis );
attendeeLabel->setText( i18n("Na&me:") );
topLayout->addWidget( attendeeLabel, 0, 0 );
- mNameEdit = new KPIM::AddresseeLineEdit( parent );
+ mNameEdit = new KPIM::AddresseeLineEdit( tqparent );
TQWhatsThis::add( mNameEdit, whatsThis );
mNameEdit->setClickMessage( i18n("Click to add a new attendee") );
attendeeLabel->setBuddy( mNameEdit );
@@ -116,12 +116,12 @@ void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout
whatsThis = i18n("Edits the role of the attendee selected "
"in the list above.");
- TQLabel *attendeeRoleLabel = new TQLabel( parent );
+ TQLabel *attendeeRoleLabel = new TQLabel( tqparent );
TQWhatsThis::add( attendeeRoleLabel, whatsThis );
attendeeRoleLabel->setText( i18n("Ro&le:") );
topLayout->addWidget( attendeeRoleLabel, 1, 0 );
- mRoleCombo = new TQComboBox( false, parent );
+ mRoleCombo = new TQComboBox( false, tqparent );
TQWhatsThis::add( mRoleCombo, whatsThis );
mRoleCombo->insertStringList( Attendee::roleList() );
attendeeRoleLabel->setBuddy( mRoleCombo );
@@ -129,17 +129,17 @@ void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout
TQT_SLOT( updateAttendee() ) );
topLayout->addWidget( mRoleCombo, 1, 1 );
- mDelegateLabel = new TQLabel( parent );
+ mDelegateLabel = new TQLabel( tqparent );
topLayout->addWidget( mDelegateLabel, 1, 2 );
whatsThis = i18n("Edits the current attendance status of the attendee "
"selected in the list above.");
- TQLabel *statusLabel = new TQLabel( parent );
+ TQLabel *statusLabel = new TQLabel( tqparent );
TQWhatsThis::add( statusLabel, whatsThis );
statusLabel->setText( i18n("Stat&us:") );
topLayout->addWidget( statusLabel, 2, 0 );
- mStatusCombo = new TQComboBox( false, parent );
+ mStatusCombo = new TQComboBox( false, tqparent );
TQWhatsThis::add( mStatusCombo, whatsThis );
// mStatusCombo->insertStringList( Attendee::statusList() );
mStatusCombo->insertItem( SmallIcon( "help" ), Attendee::statusName( Attendee::NeedsAction ) );
@@ -157,7 +157,7 @@ void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout
topLayout->setColStretch( 2, 1 );
- mRsvpButton = new TQCheckBox( parent );
+ mRsvpButton = new TQCheckBox( tqparent );
TQWhatsThis::add( mRsvpButton,
i18n("Edits whether to send an email to the attendee "
"selected in the list above to request "
@@ -166,7 +166,7 @@ void KOAttendeeEditor::initEditWidgets(TQWidget * parent, TQBoxLayout * tqlayout
connect( mRsvpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( updateAttendee() ) );
topLayout->addWidget( mRsvpButton, 2, 2 );
- TQWidget *buttonBox = new TQWidget( parent );
+ TQWidget *buttonBox = new TQWidget( tqparent );
TQVBoxLayout *buttonLayout = new TQVBoxLayout( buttonBox );
mAddButton = new TQPushButton( i18n("&New"), buttonBox );
@@ -250,7 +250,7 @@ void KOAttendeeEditor::fillOrganizerCombo()
const TQStringList lst = KOPrefs::instance()->fullEmails();
TQStringList uniqueList;
for( TQStringList::ConstIterator it = lst.begin(); it != lst.end(); ++it ) {
- if ( uniqueList.find( *it ) == uniqueList.end() )
+ if ( uniqueList.tqfind( *it ) == uniqueList.end() )
uniqueList << *it;
}
mOrganizerCombo->insertStringList( uniqueList );
@@ -262,7 +262,7 @@ void KOAttendeeEditor::addNewAttendee()
// suggest to edit that first
if ( TQListViewItem* item = hasExampleAttendee() ) {
KMessageBox::information( this,
- i18n( "Please edit the example attendee, before adding more." ), TQString::null,
+ i18n( "Please edit the example attendee, before adding more." ), TQString(),
"EditExistingExampleAttendeeFirst" );
// make sure the example attendee is selected
item->setSelected( true );
@@ -367,7 +367,7 @@ void KOAttendeeEditor::setEnableAttendeeInput(bool enabled)
void KOAttendeeEditor::clearAttendeeInput()
{
mNameEdit->setText("");
- mUid = TQString::null;
+ mUid = TQString();
mRoleCombo->setCurrentItem(0);
mStatusCombo->setCurrentItem(0);
mRsvpButton->setChecked(true);
@@ -430,7 +430,7 @@ void KOAttendeeEditor::updateAttendee()
a->setUid( mUid );
a->setEmail( email );
a->setRole( Attendee::Role( mRoleCombo->currentItem() ) );
- a->seStatus( Attendee::PartStat( mStatusCombo->currentItem() ) );
+ a->setqStatus( Attendee::PartStat( mStatusCombo->currentItem() ) );
a->setRSVP( mRsvpButton->isChecked() );
updateCurrentItem();
@@ -566,7 +566,7 @@ KABC::Addressee::List KOAttendeeEditor::expandDistList( const TQString &text )
TQValueList<KPIM::DistributionList::Entry>::ConstIterator eit;
for ( eit = eList.begin(); eit != eList.end(); ++eit ) {
KABC::Addressee a = (*eit).addressee;
- if ( !a.preferredEmail().isEmpty() && aList.find( a ) == aList.end() ) {
+ if ( !a.preferredEmail().isEmpty() && aList.tqfind( a ) == aList.end() ) {
aList.append( a ) ;
}
}
@@ -581,7 +581,7 @@ KABC::Addressee::List KOAttendeeEditor::expandDistList( const TQString &text )
TQValueList<KABC::DistributionList::Entry>::ConstIterator eit;
for ( eit = eList.begin(); eit != eList.end(); ++eit ) {
KABC::Addressee a = (*eit).addressee;
- if ( !a.preferredEmail().isEmpty() && aList.find( a ) == aList.end() ) {
+ if ( !a.preferredEmail().isEmpty() && aList.tqfind( a ) == aList.end() ) {
aList.append( a ) ;
}
}