summaryrefslogtreecommitdiffabout
path: root/korganizer/publishdialog.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/publishdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/publishdialog.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/korganizer/publishdialog.cpp b/korganizer/publishdialog.cpp
index 176595a..4323b91 100644
--- a/korganizer/publishdialog.cpp
+++ b/korganizer/publishdialog.cpp
@@ -119,34 +119,32 @@ void PublishDialog::openAddressbook()
mNameLineEdit->setEnabled(true);
mEmailLineEdit->setEnabled(true);
QListViewItem *item = new QListViewItem(mAddressListView);
mAddressListView->setSelected(item,true);
mNameLineEdit->setText(a.realName());
mEmailLineEdit->setText(a.preferredEmail());
mAddressListView->insertItem(item);
}
}
#endif
}
void PublishDialog::updateItem()
{
QListViewItem *item;
item = mAddressListView->selectedItem();
if (!item) return;
item->setText(0,mNameLineEdit->text());
item->setText(1,mEmailLineEdit->text());
}
void PublishDialog::updateInput()
{
QListViewItem *item;
item = mAddressListView->selectedItem();
if (!item) return;
mNameLineEdit->setEnabled(true);
mEmailLineEdit->setEnabled(true);
QString mail = item->text(1);
mNameLineEdit->setText(item->text(0));
mEmailLineEdit->setText(mail);
}
-
-#include "publishdialog.moc"