summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-27 14:02:13 +0200
committerMontel Laurent <[email protected]>2017-09-27 14:02:13 +0200
commit70756d8eb1a205ba0250004ee4f4ec943f412bc2 (patch)
tree132d4a0e7f88ce8fd124b7f796e1e1af3cc858f7
parente85f8a7f655932db293862307ab57775dd86092d (diff)
Port to new connect api
-rw-r--r--src/incidenceattachment.h2
-rw-r--r--src/incidencecategories.h2
-rw-r--r--src/incidencecompletionpriority.cpp2
-rw-r--r--src/incidencecompletionpriority.h2
-rw-r--r--src/resourceitem.h2
-rw-r--r--src/resourcemanagement.h2
6 files changed, 4 insertions, 8 deletions
diff --git a/src/incidenceattachment.h b/src/incidenceattachment.h
index 234e27d..1925d2a 100644
--- a/src/incidenceattachment.h
+++ b/src/incidenceattachment.h
@@ -56,7 +56,7 @@ public:
Q_SIGNALS:
void attachmentCountChanged(int newCount);
-private Q_SLOTS:
+private:
void addAttachment();
void copyToClipboard(); /// Copies selected items to clip board
void cutToClipboard(); /// Copies selected items to clipboard and removes them from the list
diff --git a/src/incidencecategories.h b/src/incidencecategories.h
index 8264c3e..b511027 100644
--- a/src/incidencecategories.h
+++ b/src/incidencecategories.h
@@ -49,12 +49,10 @@ public:
private:
void createMissingCategories();
-private Q_SLOTS:
void onSelectionChanged(const Akonadi::Tag::List &);
void onTagsFetched(KJob *);
void onMissingTagCreated(KJob *);
-private:
Ui::EventOrTodoDesktop *mUi = nullptr;
/**
diff --git a/src/incidencecompletionpriority.cpp b/src/incidencecompletionpriority.cpp
index 8d131b0..8326475 100644
--- a/src/incidencecompletionpriority.cpp
+++ b/src/incidencecompletionpriority.cpp
@@ -70,7 +70,7 @@ IncidenceCompletionPriority::IncidenceCompletionPriority(Ui::EventOrTodoDesktop
d->mUi->mCompletedLabel->setMinimumWidth(metrics.width(QStringLiteral("100%")));
d->mUi->mTaskSeparator->hide();
- connect(d->mUi->mCompletionSlider, SIGNAL(valueChanged(int)), SLOT(sliderValueChanged(int)));
+ connect(d->mUi->mCompletionSlider, QOverload<int>::of(&QSlider::valueChanged), this, [this](int val) { d->sliderValueChanged(val);});
connect(d->mUi->mPriorityCombo, QOverload< int>::of(&KComboBox::currentIndexChanged), this, &IncidenceCompletionPriority::checkDirtyStatus);
}
diff --git a/src/incidencecompletionpriority.h b/src/incidencecompletionpriority.h
index 9324d32..094273a 100644
--- a/src/incidencecompletionpriority.h
+++ b/src/incidencecompletionpriority.h
@@ -45,8 +45,6 @@ public:
private:
class Private;
Private *const d;
-
- Q_PRIVATE_SLOT(d, void sliderValueChanged(int))
};
}
diff --git a/src/resourceitem.h b/src/resourceitem.h
index 8197b4a..7af404c 100644
--- a/src/resourceitem.h
+++ b/src/resourceitem.h
@@ -117,7 +117,7 @@ private:
*/
KLDAP::LdapClient mLdapClient;
-private Q_SLOTS:
+private:
/* Answer of the LdapServer for the given dn
*
*/
diff --git a/src/resourcemanagement.h b/src/resourcemanagement.h
index 12e78d7..9b96b9f 100644
--- a/src/resourcemanagement.h
+++ b/src/resourcemanagement.h
@@ -64,7 +64,7 @@ private:
QItemSelectionModel *selectionModel = nullptr;
-private Q_SLOTS:
+private:
/* A new searchString is entered
*
*/