Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM EventViews
Commits
bb35477f
Commit
bb35477f
authored
Aug 30, 2021
by
Laurent Montel
😁
Browse files
Use qOverload directly (scripted)
parent
f5f3fa9e
Pipeline
#77331
passed with stage
in 6 minutes and 34 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/agenda/agendaview.cpp
View file @
bb35477f
...
...
@@ -894,13 +894,13 @@ void AgendaView::connectAgenda(Agenda *agenda, Agenda *otherAgenda)
// rescheduling of todos by d'n'd
connect
(
agenda
,
Q
Overload
<
const
KCalendarCore
::
Incidence
::
List
&
,
const
QPoint
&
,
bool
>
::
of
(
&
Agenda
::
droppedIncidences
),
q
Overload
<
const
KCalendarCore
::
Incidence
::
List
&
,
const
QPoint
&
,
bool
>
(
&
Agenda
::
droppedIncidences
),
this
,
Q
Overload
<
const
KCalendarCore
::
Incidence
::
List
&
,
const
QPoint
&
,
bool
>
::
of
(
&
AgendaView
::
slotIncidencesDropped
));
q
Overload
<
const
KCalendarCore
::
Incidence
::
List
&
,
const
QPoint
&
,
bool
>
(
&
AgendaView
::
slotIncidencesDropped
));
connect
(
agenda
,
Q
Overload
<
const
QList
<
QUrl
>
&
,
const
QPoint
&
,
bool
>
::
of
(
&
Agenda
::
droppedIncidences
),
q
Overload
<
const
QList
<
QUrl
>
&
,
const
QPoint
&
,
bool
>
(
&
Agenda
::
droppedIncidences
),
this
,
Q
Overload
<
const
QList
<
QUrl
>
&
,
const
QPoint
&
,
bool
>
::
of
(
&
AgendaView
::
slotIncidencesDropped
));
q
Overload
<
const
QList
<
QUrl
>
&
,
const
QPoint
&
,
bool
>
(
&
AgendaView
::
slotIncidencesDropped
));
}
void
AgendaView
::
slotIncidenceSelected
(
const
KCalendarCore
::
Incidence
::
Ptr
&
incidence
,
QDate
date
)
...
...
src/journal/journalframe.cpp
View file @
bb35477f
...
...
@@ -81,9 +81,9 @@ void JournalDateView::addJournal(const Akonadi::Item &j)
connect
(
entry
,
&
JournalFrame
::
editIncidence
,
this
,
&
JournalDateView
::
editIncidence
);
connect
(
entry
,
&
JournalFrame
::
incidenceSelected
,
this
,
&
JournalDateView
::
incidenceSelected
);
connect
(
entry
,
Q
Overload
<
const
KCalendarCore
::
Journal
::
Ptr
&
,
bool
>
::
of
(
&
JournalFrame
::
printJournal
),
q
Overload
<
const
KCalendarCore
::
Journal
::
Ptr
&
,
bool
>
(
&
JournalFrame
::
printJournal
),
this
,
Q
Overload
<
const
KCalendarCore
::
Journal
::
Ptr
&
,
bool
>
::
of
(
&
JournalDateView
::
printJournal
));
q
Overload
<
const
KCalendarCore
::
Journal
::
Ptr
&
,
bool
>
(
&
JournalDateView
::
printJournal
));
}
Akonadi
::
Item
::
List
JournalDateView
::
journals
()
const
...
...
@@ -176,7 +176,7 @@ JournalFrame::JournalFrame(const Akonadi::Item &j, const Akonadi::ETMCalendar::P
mPrintButton
->
setToolTip
(
i18n
(
"Print this journal entry"
));
mPrintButton
->
setWhatsThis
(
i18n
(
"Opens a print dialog for this journal entry"
));
buttonsLayout
->
addWidget
(
mPrintButton
);
connect
(
mPrintButton
,
&
QPushButton
::
clicked
,
this
,
Q
Overload
<>
::
of
(
&
JournalFrame
::
printJournal
));
connect
(
mPrintButton
,
&
QPushButton
::
clicked
,
this
,
q
Overload
<>
(
&
JournalFrame
::
printJournal
));
mPrintPreviewButton
=
new
QPushButton
(
this
);
mPrintPreviewButton
->
setText
(
i18n
(
"Print preview"
));
...
...
src/list/listview.cpp
View file @
bb35477f
...
...
@@ -295,9 +295,9 @@ ListView::ListView(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent, b
layoutTop
->
addWidget
(
d
->
mTreeWidget
);
QObject
::
connect
(
d
->
mTreeWidget
,
Q
Overload
<
const
QModelIndex
&>
::
of
(
&
QTreeWidget
::
doubleClicked
),
q
Overload
<
const
QModelIndex
&>
(
&
QTreeWidget
::
doubleClicked
),
this
,
Q
Overload
<
const
QModelIndex
&>
::
of
(
&
ListView
::
defaultItemAction
));
q
Overload
<
const
QModelIndex
&>
(
&
ListView
::
defaultItemAction
));
QObject
::
connect
(
d
->
mTreeWidget
,
&
QTreeWidget
::
customContextMenuRequested
,
this
,
&
ListView
::
popupMenu
);
QObject
::
connect
(
d
->
mTreeWidget
,
&
QTreeWidget
::
itemSelectionChanged
,
this
,
&
ListView
::
processSelectionChange
);
QObject
::
connect
(
d
->
mTreeWidget
->
header
(),
&
QHeaderView
::
sortIndicatorChanged
,
...
...
src/todo/todoview.cpp
View file @
bb35477f
...
...
@@ -189,7 +189,7 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
if
(
!
mSidebarView
)
{
mQuickSearch
=
new
TodoViewQuickSearch
(
calendar
(),
this
);
mQuickSearch
->
setVisible
(
prefs
->
enableTodoQuickSearch
());
connect
(
mQuickSearch
,
&
TodoViewQuickSearch
::
searchTextChanged
,
mProxyModel
,
Q
Overload
<
const
QString
&>
::
of
(
&
QSortFilterProxyModel
::
setFilterRegExp
));
connect
(
mQuickSearch
,
&
TodoViewQuickSearch
::
searchTextChanged
,
mProxyModel
,
q
Overload
<
const
QString
&>
(
&
QSortFilterProxyModel
::
setFilterRegExp
));
connect
(
mQuickSearch
,
&
TodoViewQuickSearch
::
searchTextChanged
,
this
,
&
TodoView
::
restoreViewState
);
connect
(
mQuickSearch
,
&
TodoViewQuickSearch
::
filterCategoryChanged
,
mProxyModel
,
&
TodoViewSortFilterProxyModel
::
setCategoryFilter
);
connect
(
mQuickSearch
,
&
TodoViewQuickSearch
::
filterCategoryChanged
,
this
,
&
TodoView
::
restoreViewState
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment