Commit 5bd2d4d3 authored by Laurent Montel's avatar Laurent Montel 😁

Start to fix 430119

CCBUG: 430119
parent 4203f31c
Pipeline #43485 passed with stage
in 11 minutes and 14 seconds
......@@ -148,6 +148,12 @@ AddressLocationWidget::~AddressLocationWidget()
{
}
bool AddressLocationWidget::wasChanged() const
{
//TODO
return false;
}
void AddressLocationWidget::setReadOnly(bool readOnly)
{
mPreferredCheckBox->setEnabled(!readOnly);
......@@ -273,6 +279,7 @@ void AddressLocationWidget::reset()
{
Q_EMIT updateAddressCanceled();
mCurrentAddress = -1;
mWasChanged = false;
clear();
}
......
......@@ -36,7 +36,7 @@ public:
~AddressLocationWidget();
void setAddress(const KContacts::Address &address);
KContacts::Address address() const;
Q_REQUIRED_RESULT KContacts::Address address() const;
void slotModifyAddress(const KContacts::Address &address, int currentIndex);
......@@ -44,6 +44,7 @@ public:
void setReadOnly(bool readOnly);
Q_REQUIRED_RESULT bool wasChanged() const;
Q_SIGNALS:
void addNewAddress(const KContacts::Address &address);
void updateAddress(const KContacts::Address &address, int index);
......@@ -71,6 +72,7 @@ private:
SelectAddressTypeComboBox *mTypeCombo = nullptr;
int mCurrentAddress = -1;
Mode mCurrentMode;
bool mWasChanged = false;
};
}
......
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