Port to new connect api

wilder-work
Montel Laurent 10 years ago
parent 966b92eecf
commit a48a5306cc
  1. 2
      src/configuredialog/configuresecuritypage.cpp
  2. 8
      src/identity/identitypage.cpp
  3. 2
      src/identity/identitypage.h

@ -168,7 +168,7 @@ SecurityPageMDNTab::SecurityPageMDNTab(QWidget *parent)
mOrigQuoteGroup->addButton(mUi.radioHeaders, 2);
connect(mUi.mNoMDNsWhenEncryptedCheck, &QAbstractButton::toggled, this, &ConfigModuleTab::slotEmitChanged);
connect(mUi.labelWarning, SIGNAL(linkActivated(QString)), SLOT(slotLinkClicked(QString)));
connect(mUi.labelWarning, &QLabel::linkActivated, this, &SecurityPageMDNTab::slotLinkClicked);
}
void SecurityPageMDNTab::slotLinkClicked(const QString &link)

@ -64,15 +64,15 @@ IdentityPage::IdentityPage(QWidget *parent)
connect(mIPage.mIdentityList, &QTreeWidget::itemSelectionChanged, this, &IdentityPage::slotIdentitySelectionChanged);
connect(this, SIGNAL(changed(bool)),
SLOT(slotIdentitySelectionChanged()));
connect(mIPage.mIdentityList, SIGNAL(rename(KMail::IdentityListViewItem*,QString)), SLOT(slotRenameIdentity(KMail::IdentityListViewItem*,QString)));
connect(mIPage.mIdentityList, SIGNAL(rename(KMail::IdentityListViewItem*,QString)), SLOT(slotRenameIdentityFromItem(KMail::IdentityListViewItem*,QString)));
connect(mIPage.mIdentityList, &QTreeWidget::itemDoubleClicked, this, &IdentityPage::slotModifyIdentity);
connect(mIPage.mIdentityList, &IdentityListView::contextMenu, this, &IdentityPage::slotContextMenu);
// ### connect dragged(...), ...
connect(mIPage.mButtonAdd, &QPushButton::clicked, this, &IdentityPage::slotNewIdentity);
connect(mIPage.mModifyButton, &QPushButton::clicked, this, &IdentityPage::slotModifyIdentity);
connect(mIPage.mRenameButton, SIGNAL(clicked()),
this, SLOT(slotRenameIdentity()));
connect(mIPage.mRenameButton, &QPushButton::clicked,
this, &IdentityPage::slotRenameIdentity);
connect(mIPage.mRemoveButton, &QPushButton::clicked, this, &IdentityPage::slotRemoveIdentity);
connect(mIPage.mSetAsDefaultButton, &QPushButton::clicked, this, &IdentityPage::slotSetAsDefault);
}
@ -256,7 +256,7 @@ void IdentityPage::slotRenameIdentity()
mIPage.mIdentityList->editItem(item);
}
void IdentityPage::slotRenameIdentity(KMail::IdentityListViewItem *item, const QString &text)
void IdentityPage::slotRenameIdentityFromItem(KMail::IdentityListViewItem *item, const QString &text)
{
if (!item) {
return;

@ -60,7 +60,7 @@ private Q_SLOTS:
void slotRenameIdentity();
/** connected to @p mIdentityList's renamed() signal. Validates the
new name and sets it in the KIdentityManagement::IdentityManager */
void slotRenameIdentity(KMail::IdentityListViewItem *, const QString &);
void slotRenameIdentityFromItem(KMail::IdentityListViewItem *, const QString &);
void slotContextMenu(KMail::IdentityListViewItem *, const QPoint &);
void slotSetAsDefault();
void slotIdentitySelectionChanged();

Loading…
Cancel
Save