Commit 5752645a authored by Laurent Montel's avatar Laurent Montel 😁

Activate signal/slot

parent 6bf83ee3
Pipeline #44270 canceled with stage
......@@ -40,7 +40,7 @@ AddressLocationWidget::AddressLocationWidget(QWidget *parent)
mTypeCombo = new SelectAddressTypeComboBox(this);
mTypeCombo->setObjectName(QStringLiteral("typeaddress"));
//connect(mTypeCombo, &SelectAddressTypeComboBox::activated, this, &AddressLocationWidget::slotChanged);
connect(mTypeCombo, QOverload<const QString &>::of(&SelectAddressTypeComboBox::activated), this, &AddressLocationWidget::slotChanged);
gridLayout->addWidget(mTypeCombo, 0, 0, 1, 2);
QLabel *label = new QLabel(KContacts::Address::streetLabel(), this);
......@@ -106,7 +106,7 @@ AddressLocationWidget::AddressLocationWidget(QWidget *parent)
mCountryCombo->setEditable(true);
mCountryCombo->lineEdit()->setPlaceholderText(i18n("Add a Country"));
mCountryCombo->setDuplicatesEnabled(false);
//connect(mCountryCombo, &KComboBox::activated, this, &AddressLocationWidget::slotChanged);
connect(mCountryCombo, QOverload<const QString &>::of(&KComboBox::activated), this, &AddressLocationWidget::slotChanged);
gridLayout->addWidget(mCountryCombo, 6, 1);
mPreferredCheckBox = new QCheckBox(i18nc("street/postal", "This is the preferred address"), this);
......
Markdown is supported
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