summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2012-09-20 07:42:41 (GMT)
committerTobias Markmann <tm@ayena.de>2012-11-11 16:38:02 (GMT)
commitf7807574201365276a26528135123545adcaa9bc (patch)
tree909911a8011279640bd494a846600af927ab3205 /Swift
parent8db1123e7edf7e9946df350f20fc18c85aab2fdf (diff)
downloadswift-contrib-f7807574201365276a26528135123545adcaa9bc.zip
swift-contrib-f7807574201365276a26528135123545adcaa9bc.tar.bz2
Some comments.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h6
-rw-r--r--Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp25
2 files changed, 20 insertions, 11 deletions
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h b/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h
index 770ee8c..ed07d9d 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h
+++ b/Swift/QtUI/QtVCardWidget/QtVCardGeneralField.h
@@ -10,6 +10,12 @@
namespace Swift {
+/*
+ * covers features like:
+ * - preffered (star checkbox)
+ * - combo check box
+ * - label
+ */
class QtVCardGeneralField : public QWidget {
Q_OBJECT
public:
diff --git a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
index 54080f1..b82aff9 100644
--- a/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
+++ b/Swift/QtUI/QtVCardWidget/QtVCardWidget.cpp
@@ -11,6 +11,7 @@
#include <QLineEdit>
#include <QMenu>
+
#include "QtVCardAddressField.h"
#include "QtVCardAddressLabelField.h"
#include "QtVCardBirthdayField.h"
@@ -41,17 +42,17 @@ QtVCardWidget::QtVCardWidget(QWidget* parent) :
menu->addMenu(ui->photoAndName->getAddFieldMenu());
ui->toolButton->setMenu(menu);
- addFieldType(menu, boost::make_shared<QtVCardAddressField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardEMailField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardJIDField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardBirthdayField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardTelephoneField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardRoleField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardTitleField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardOrganisationField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardURLField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardDescriptionField::FieldInfo>());
- addFieldType(menu, boost::make_shared<QtVCardAddressLabelField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardAddressField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardEMailField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardJIDField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardBirthdayField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardTelephoneField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardRoleField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardTitleField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardOrganisationField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardURLField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardDescriptionField::FieldInfo>());
+ //addFieldType(menu, boost::make_shared<QtVCardAddressLabelField::FieldInfo>());
setEditable(false);
}
@@ -102,6 +103,7 @@ void QtVCardWidget::setVCard(VCard::ref vcard) {
ui->photoAndName->setSuffix(P2QSTRING(vcard->getSuffix()));
ui->photoAndName->setAvatar(vcard->getPhoto(), vcard->getPhotoType());
+ /*
foreach (const VCard::EMailAddress& address, vcard->getEMailAddresses()) {
QtVCardEMailField* emailField = new QtVCardEMailField(this);
emailField->setAddress(P2QSTRING(address.address));
@@ -213,6 +215,7 @@ void QtVCardWidget::setVCard(VCard::ref vcard) {
ui->cardFields->insertWidget(ui->cardFields->count(), addressLabelField);
}
+ */
setEditable(editable);
}