author | zautrix <zautrix> | 2005-07-29 17:41:39 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-29 17:41:39 (UTC) |
commit | 9553b882522708477d131d0d9a2c581724940ba3 (patch) (side-by-side diff) | |
tree | c44ccf8238ed9aa2991aad829dc75302b2992f9b /korganizer/koeditordetails.cpp | |
parent | 2f3e1ae3d057b10aa6b4dbc3de109da32563dfb3 (diff) | |
download | kdepimpi-9553b882522708477d131d0d9a2c581724940ba3.zip kdepimpi-9553b882522708477d131d0d9a2c581724940ba3.tar.gz kdepimpi-9553b882522708477d131d0d9a2c581724940ba3.tar.bz2 |
fixx
Diffstat (limited to 'korganizer/koeditordetails.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditordetails.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp index 479bd8b..b90b9eb 100644 --- a/korganizer/koeditordetails.cpp +++ b/korganizer/koeditordetails.cpp @@ -112,18 +112,16 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name) mAddressBookButton = new QPushButton(i18n("Address &Book..."),this); QLabel *attendeeLabel = new QLabel(this); attendeeLabel->setText(i18n("Name:")); attendeeLabel->setFixedSize( attendeeLabel->sizeHint() ); mNameEdit = new QLineEdit(this); connect(mNameEdit,SIGNAL(textChanged(const QString &)), SLOT(updateAttendeeItem())); - mUidEdit = new QLineEdit(0); - mUidEdit->setText(""); QLabel *emailLabel = new QLabel(this); emailLabel->setText(i18n("Email:")); mEmailEdit = new QLineEdit(this); connect(mEmailEdit,SIGNAL(textChanged(const QString &)), SLOT(updateAttendeeItem())); QLabel *attendeeRoleLabel = new QLabel(this); @@ -350,17 +348,17 @@ void KOEditorDetails::setDefaults() { mRsvpButton->setChecked(true); mListView->clear(); mdelAttendees.clear(); clearAttendeeInput(); mOrganizerLabel->setText(i18n("Organizer: %1").arg(KOPrefs::instance()->email())); mNameEdit->setText(""); - mUidEdit->setText(""); + mUidEdit = ""; mEmailEdit->setText(""); mRoleCombo->setCurrentItem( 0 ); mStatusCombo->setCurrentItem( 0 ); } void KOEditorDetails::readEvent(Incidence *event) { @@ -413,30 +411,30 @@ void KOEditorDetails::updateAttendeeInput() } else { clearAttendeeInput(); } } void KOEditorDetails::clearAttendeeInput() { mNameEdit->setText(""); - mUidEdit->setText(""); + mUidEdit = ""; mEmailEdit->setText(""); mRoleCombo->setCurrentItem(0); mStatusCombo->setCurrentItem(0); mRsvpButton->setChecked(true); setEnabledAttendeeInput( false ); } void KOEditorDetails::fillAttendeeInput( AttendeeListItem *aItem ) { Attendee *a = aItem->data(); mDisableItemUpdate = true; mNameEdit->setText(a->name()); - mUidEdit->setText(a->uid()); + mUidEdit = a->uid(); mEmailEdit->setText(a->email()); mRoleCombo->setCurrentItem(a->role()); mStatusCombo->setCurrentItem(a->status()); mRsvpButton->setChecked(a->RSVP()); mDisableItemUpdate = false; setEnabledAttendeeInput( true ); @@ -466,17 +464,17 @@ void KOEditorDetails::updateAttendeeItem() QListViewItem *item = mListView->selectedItem(); AttendeeListItem *aItem = static_cast<AttendeeListItem *>( item ); if ( !aItem ) return; Attendee *a = aItem->data(); a->setName( mNameEdit->text() ); - a->setUid( mUidEdit->text() ); + a->setUid( mUidEdit ); a->setEmail( mEmailEdit->text() ); if ( mEmailEdit->text().isEmpty() ) mRsvpButton->setChecked( false ); a->setRSVP( mRsvpButton->isChecked() ); a->setRole( Attendee::Role( mRoleCombo->currentItem() ) ); a->setStatus( Attendee::PartStat( mStatusCombo->currentItem() ) ); aItem->updateItem(); } |