Commit 7fa37d45 authored by Laurent Montel's avatar Laurent Montel
Browse files

const'ify more pointer

parent b79f5274
......@@ -28,40 +28,40 @@ static const char mySearchAndMergeContactDuplicateContactDialogGroupName[] = "Se
}
SearchAndMergeContactDuplicateContactDialog::SearchAndMergeContactDuplicateContactDialog(QWidget *parent)
: QDialog(parent)
, mSearchResult(new SearchDuplicateResultWidget(this))
, mMergeContactResult(new MergeContactShowResultTabWidget(this))
, mNoContactSelected(new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NoContactSelected, this))
, mNoDuplicateContactFound(new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NoContactDuplicatesFound, this))
, mNoEnoughContactSelected(new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NotEnoughContactsSelected, this))
, mSelectInformation(new KABMergeContacts::MergeContactSelectInformationTabWidget(this))
, mStackedWidget(new QStackedWidget(this))
{
setWindowTitle(i18nc("@title:window", "Search and Select Duplicate Contacts to merge"));
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
auto mainLayout = new QVBoxLayout(this);
connect(buttonBox, &QDialogButtonBox::accepted, this, &SearchAndMergeContactDuplicateContactDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &SearchAndMergeContactDuplicateContactDialog::reject);
mStackedWidget = new QStackedWidget(this);
mStackedWidget->setObjectName(QStringLiteral("stackedwidget"));
mSearchResult = new SearchDuplicateResultWidget(this);
mSearchResult->setObjectName(QStringLiteral("mergecontact"));
mStackedWidget->addWidget(mSearchResult);
connect(mSearchResult, &SearchDuplicateResultWidget::contactMerged, this, &SearchAndMergeContactDuplicateContactDialog::slotContactMerged);
connect(mSearchResult, &SearchDuplicateResultWidget::mergeDone, this, &SearchAndMergeContactDuplicateContactDialog::slotMergeDone);
connect(mSearchResult, &SearchDuplicateResultWidget::customizeMergeContact, this, &SearchAndMergeContactDuplicateContactDialog::slotCustomizeMergeContacts);
mNoContactSelected = new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NoContactSelected, this);
mNoContactSelected->setObjectName(QStringLiteral("nocontactselected"));
mStackedWidget->addWidget(mNoContactSelected);
mNoDuplicateContactFound = new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NoContactDuplicatesFound, this);
mNoDuplicateContactFound->setObjectName(QStringLiteral("nocontactduplicatesfound"));
mStackedWidget->addWidget(mNoDuplicateContactFound);
mMergeContactResult = new MergeContactShowResultTabWidget(this);
mMergeContactResult->setObjectName(QStringLiteral("mergecontactresult"));
mStackedWidget->addWidget(mMergeContactResult);
mNoEnoughContactSelected = new KABMergeContacts::MergeContactErrorLabel(MergeContactErrorLabel::NotEnoughContactsSelected, this);
mNoEnoughContactSelected->setObjectName(QStringLiteral("noenoughcontactselected"));
mStackedWidget->addWidget(mNoEnoughContactSelected);
mStackedWidget->setCurrentWidget(mNoContactSelected);
mSelectInformation = new KABMergeContacts::MergeContactSelectInformationTabWidget(this);
mSelectInformation->setObjectName(QStringLiteral("selectioninformation"));
mStackedWidget->addWidget(mSelectInformation);
......
......@@ -35,8 +35,8 @@ private:
void slotCustomizeMergeContacts(const QVector<KABMergeContacts::MergeConflictResult> &lst, const Akonadi::Collection &col);
void readConfig();
void writeConfig();
SearchDuplicateResultWidget *mSearchResult = nullptr;
MergeContactShowResultTabWidget *mMergeContactResult = nullptr;
SearchDuplicateResultWidget *const mSearchResult;
MergeContactShowResultTabWidget *const mMergeContactResult;
KABMergeContacts::MergeContactErrorLabel *mNoContactSelected = nullptr;
KABMergeContacts::MergeContactErrorLabel *mNoDuplicateContactFound = nullptr;
KABMergeContacts::MergeContactErrorLabel *mNoEnoughContactSelected = nullptr;
......
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