Akonadi Contacts
addresslocationwidget.cpp
38 connect(mTypeCombo, &SelectAddressTypeComboBox::textHighlighted, this, &AddressLocationWidget::slotChanged);
70 connect(mPostalCodeEdit, &KLineEdit::editingFinished, this, &AddressLocationWidget::slotChanged);
103 mPreferredCheckBox = new QCheckBox(i18nc("street/postal", "This is the preferred address"), this);
129 connect(mRemoveAddress, &QPushButton::clicked, this, &AddressLocationWidget::slotRemoveAddress);
134 connect(mModifyAddress, &QPushButton::clicked, this, &AddressLocationWidget::slotUpdateAddress);
138 connect(mCancelAddress, &QPushButton::clicked, this, &AddressLocationWidget::slotCancelModifyAddress);
195 if (!mLocalityEdit->text().trimmed().isEmpty() || !mRegionEdit->text().trimmed().isEmpty() || !mPostalCodeEdit->text().trimmed().isEmpty()
213 mCountryCombo->setItemText(mCountryCombo->currentIndex(), QLocale::territoryToString(QLocale().territory()));
250void AddressLocationWidget::slotModifyAddress(const KContacts::Address &address, int currentIndex)
A widget for selecting the type of an address.
Definition selectaddresstypecombobox.h:21
void setType(KContacts::Address::Type type)
Sets the type that shall be selected in the combobox.
Definition selectaddresstypecombobox.cpp:36
KContacts::Address::Type type() const
Returns the type that is currently selected.
Definition selectaddresstypecombobox.cpp:47
QString street() const
static QString streetLabel()
static QString countryLabel()
QString country() const
Type type() const
static QString regionLabel()
static QString postalCodeLabel()
static QString postOfficeBoxLabel()
static QString localityLabel()
static QList< KCountry > allCountries()
QString name() const
bool isEmpty() const
virtual void setReadOnly(bool)
virtual void setText(const QString &)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
PostalAddress address(const QVariant &location)
ButtonCode questionTwoActions(QWidget *parent, const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const QString &dontAskAgainName=QString(), Options options=Notify)
KGuiItem cancel()
KGuiItem del()
QString label(StandardShortcut id)
KI18NLOCALEDATA_EXPORT KCountry country(const char *ianaId)
void setChecked(bool)
void clicked(bool checked)
void addItems(const QStringList &texts)
void setCurrentIndex(int index)
currentText
int findText(const QString &text, Qt::MatchFlags flags) const const
void setItemText(int index, const QString &text)
void textHighlighted(const QString &text)
void addLayout(QLayout *layout, int row, int column, Qt::Alignment alignment)
void editingFinished()
text
void append(QList< T > &&value)
QString territoryToString(Territory territory)
Q_EMITQ_EMIT
void setCurrentIndex(int index)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setEnabled(bool)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.