Commit 74caed08 authored by Laurent Montel's avatar Laurent Montel 😁

USe new connect api

parent 42d335d9
......@@ -43,14 +43,12 @@ public:
QString message() const;
private Q_SLOTS:
private:
/**
* Calculates the needed amount of sms and the number of characters left in the current sms.
* Shows the result in the QLabel mLengthLabel.
*/
void updateCounter();
private:
void initUI();
QString mNumber;
......
......@@ -59,12 +59,10 @@ Q_SIGNALS:
void updateAddress(const KContacts::Address &address, int index);
void updateAddressCanceled();
private Q_SLOTS:
private:
void slotAddAddress();
void slotUpdateAddress();
void slotCancelModifyAddress();
private:
void fillCountryCombo();
void switchMode();
void reset();
......
......@@ -42,11 +42,9 @@ public:
Q_SIGNALS:
void addNewField(const CustomField &field);
private Q_SLOTS:
private:
void slotAddField();
void slotFielNameChanged(const QString &text);
private:
void fillTypes();
QLineEdit *mFieldName;
QPushButton *mAddField;
......
......@@ -41,10 +41,8 @@ public:
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) Q_DECL_OVERRIDE;
private Q_SLOTS:
void setFirstColumnAsCurrent();
private:
void setFirstColumnAsCurrent();
void removeField(int row, QAbstractItemModel *model);
const QIcon mIcon;
QSize mButtonSize;
......
......@@ -69,11 +69,9 @@ public Q_SLOTS:
protected:
bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE;
private Q_SLOTS:
private:
void displayTypeChanged(int);
void setComboBoxEditable(bool);
private:
void updateView();
KComboBox *mView;
......
......@@ -47,11 +47,10 @@ Q_SIGNALS:
void removeWidget(MailWidget *);
void preferredChanged(MailWidget *);
private Q_SLOTS:
private:
void slotAddMail();
void slotRemoveMail();
void slotPreferredChanged();
private:
KContacts::Email mEmail;
QString mOldType;
PreferredLineEditWidget *mMailEdit;
......
......@@ -48,11 +48,9 @@ public:
Q_SIGNALS:
void nameChanged(const KContacts::Addressee &contact);
private Q_SLOTS:
private:
void slotTextChanged(const QString &text);
void slotOpenNameEditDialog();
private:
DisplayNameEditWidget::DisplayType mDisplayType;
KContacts::Addressee mContact;
KLineEdit *mNameEdit;
......
......@@ -50,11 +50,10 @@ Q_SIGNALS:
void removeWidget(WebWidget *);
void preferredChanged(WebWidget *);
private Q_SLOTS:
private:
void slotRemoveWeb();
void slotAddWeb();
void slotPreferredChanged();
private:
KContacts::ResourceLocatorUrl mUrl;
QStringList mWebSiteType;
QString mOldType;
......
......@@ -249,28 +249,28 @@ void ImageWidget::contextMenuEvent(QContextMenuEvent *event)
if (mType == Photo) {
if (!mReadOnly) {
menu.addAction(i18n("Change photo..."), this, SLOT(changeImage()));
menu.addAction(i18n("Change URL..."), this, SLOT(changeUrl()));
menu.addAction(i18n("Change photo..."), this, &ImageWidget::changeImage);
menu.addAction(i18n("Change URL..."), this, &ImageWidget::changeUrl);
}
if (mHasImage) {
menu.addAction(i18n("Save photo..."), this, SLOT(saveImage()));
menu.addAction(i18n("Save photo..."), this, &ImageWidget::saveImage);
if (!mReadOnly) {
menu.addAction(i18n("Remove photo"), this, SLOT(deleteImage()));
menu.addAction(i18n("Remove photo"), this, &ImageWidget::deleteImage);
}
}
} else {
if (!mReadOnly) {
menu.addAction(i18n("Change logo..."), this, SLOT(changeImage()));
menu.addAction(i18n("Change URL..."), this, SLOT(changeUrl()));
menu.addAction(i18n("Change logo..."), this, &ImageWidget::changeImage);
menu.addAction(i18n("Change URL..."), this, &ImageWidget::changeUrl);
}
if (mHasImage) {
menu.addAction(i18n("Save logo..."), this, SLOT(saveImage()));
menu.addAction(i18n("Save logo..."), this, &ImageWidget::saveImage);
if (!mReadOnly) {
menu.addAction(i18n("Remove logo"), this, SLOT(deleteImage()));
menu.addAction(i18n("Remove logo"), this, &ImageWidget::deleteImage);
}
}
}
......
......@@ -64,15 +64,13 @@ protected:
// context menu handling
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
private Q_SLOTS:
private:
void updateView();
void changeImage();
void changeUrl();
void saveImage();
void deleteImage();
private:
ImageLoader *imageLoader();
KContacts::Picture mPicture;
......
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