summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-09-26 06:43:35 +0200
committerMontel Laurent <[email protected]>2017-09-26 06:43:35 +0200
commit8111fe3afb9322eb12ef0d21a8723b36abc9f4fe (patch)
tree915c997152011726274c210f421164642cfb278a
parent80e27afa75267eca4c362c19ff7cff66d884927b (diff)
Port to new connect api
-rw-r--r--src/views/multiagendaview/multiagendaview.cpp4
-rw-r--r--src/views/todoview/kotodoview.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/views/multiagendaview/multiagendaview.cpp b/src/views/multiagendaview/multiagendaview.cpp
index 3cdba90..8a7834e 100644
--- a/src/views/multiagendaview/multiagendaview.cpp
+++ b/src/views/multiagendaview/multiagendaview.cpp
@@ -339,8 +339,8 @@ MultiAgendaViewConfigDialog::MultiAgendaViewConfigDialog(QAbstractItemModel *bas
this, &MultiAgendaViewConfigDialog::currentChanged);
connect(d->ui.useCustomRB, &QAbstractButton::toggled,
this, &MultiAgendaViewConfigDialog::useCustomToggled);
- connect(d->ui.columnNumberSB, SIGNAL(valueChanged(int)),
- this, SLOT(numberOfColumnsChanged(int)));
+ connect(d->ui.columnNumberSB, QOverload<int>::of(&QSpinBox::valueChanged),
+ this, &MultiAgendaViewConfigDialog::numberOfColumnsChanged);
connect(d->ui.titleLE, &QLineEdit::textEdited,
this, &MultiAgendaViewConfigDialog::titleEdited);
d->setUpColumns(numberOfColumns());
diff --git a/src/views/todoview/kotodoview.cpp b/src/views/todoview/kotodoview.cpp
index 121311c..62f767a 100644
--- a/src/views/todoview/kotodoview.cpp
+++ b/src/views/todoview/kotodoview.cpp
@@ -45,7 +45,7 @@ KOTodoView::KOTodoView(bool sidebarView, QWidget *parent)
sidebarView, parent);
QVBoxLayout *layout = new QVBoxLayout(this);
layout->addWidget(mView);
- connect(mView, SIGNAL(printTodo()), SLOT(printTodo()));
+ connect(mView, &EventViews::TodoView::printTodo, this, [this]() { printTodo();});
connect(mView, &EventViews::TodoView::printPreviewTodo, this, &KOTodoView::printPreviewTodo);
connect(mView, &EventViews::TodoView::purgeCompletedSignal, this, &KOTodoView::purgeCompletedSignal);