Commit cf4948cb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reactivate code

parent ed27421a
......@@ -29,8 +29,8 @@ using namespace KAddressBookImportExport;
KAddressBookContactSelectionDialog::KAddressBookContactSelectionDialog(QItemSelectionModel *selectionModel, bool allowToSelectTypeToExport,
QWidget *parent)
: QDialog(parent)//,
//mVCardExport(Q_NULLPTR)
: QDialog(parent),
mVCardExport(Q_NULLPTR)
{
setWindowTitle(i18n("Select Contacts"));
......@@ -39,10 +39,8 @@ KAddressBookContactSelectionDialog::KAddressBookContactSelectionDialog(QItemSele
mSelectionWidget = new KAddressBookContactSelectionWidget(selectionModel, this);
if (allowToSelectTypeToExport) {
mainLayout->addWidget(mSelectionWidget);
#if 0
mVCardExport = new VCardExportSelectionWidget(this);
mVCardExport = new KAddressBookExportSelectionWidget(this);
mainLayout->addWidget(mVCardExport);
#endif
} else {
mainLayout->addWidget(mSelectionWidget);
}
......@@ -75,16 +73,16 @@ KAddressBookImportExport::KAddressBookImportExportContactList KAddressBookContac
{
return mSelectionWidget->selectedContacts();
}
#if 0
VCardExportSelectionWidget::ExportFields KAddressBookContactSelectionDialog::exportType() const
KAddressBookExportSelectionWidget::ExportFields KAddressBookContactSelectionDialog::exportType() const
{
if (mVCardExport) {
return mVCardExport->exportType();
} else {
return VCardExportSelectionWidget::None;
return KAddressBookExportSelectionWidget::None;
}
}
#endif
void KAddressBookContactSelectionDialog::setAddGroupContact(bool addGroupContact)
{
......
......@@ -25,7 +25,7 @@
#include <KContacts/Addressee>
#include <QDialog>
#include <KAddressBookImportExport/KAddressBookImportExportContactList>
//#include <xxport/vcard/vcardexportselectionwidget.h>
#include <KAddressBookImportExport/KAddressBookExportSelectionWidget>
#include <AkonadiCore/Item>
class QItemSelectionModel;
class KAddressBookContactSelectionWidget;
......@@ -41,6 +41,7 @@ class Collection;
*/
namespace KAddressBookImportExport
{
class KAddressBookExportSelectionWidget;
class KAddressBookContactSelectionWidget;
class KADDRESSBOOK_IMPORTEXPORT_EXPORT KAddressBookContactSelectionDialog : public QDialog
{
......@@ -70,13 +71,13 @@ public:
*/
KAddressBookImportExport::KAddressBookImportExportContactList selectedContacts() const;
//VCardExportSelectionWidget::ExportFields exportType() const;
KAddressBookExportSelectionWidget::ExportFields exportType() const;
void setAddGroupContact(bool addGroupContact);
Akonadi::Item::List selectedItems() const;
private:
KAddressBookContactSelectionWidget *mSelectionWidget;
//VCardExportSelectionWidget *mVCardExport;
KAddressBookExportSelectionWidget *mVCardExport;
};
}
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment