Skip to content
GitLab
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
e5171f92
Commit
e5171f92
authored
Jul 28, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
31f700dc
Pipeline
#210018
passed with stage
in 7 minutes and 7 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/agenda/agenda.cpp
View file @
e5171f92
...
...
@@ -1205,7 +1205,7 @@ void Agenda::endItemAction()
d
->
mAgendaView
->
enableAgendaUpdate
(
true
);
}
else
{
KMessageBox
::
sorry
(
this
,
KMessageBox
::
error
(
this
,
i18n
(
"Unable to add the exception item to the calendar. "
"No change will be done."
),
i18n
(
"Error Occurred"
));
...
...
src/agenda/agendaview.cpp
View file @
e5171f92
...
...
@@ -2145,7 +2145,7 @@ void AgendaView::slotIncidencesDropped(const QList<QUrl> &items, const QPoint &g
existingTodo
->
setAllDay
(
allDay
);
changer
()
->
modifyIncidence
(
existingTodoItem
,
oldTodo
,
this
);
}
else
{
KMessageBox
::
sorry
(
this
,
KMessageBox
::
error
(
this
,
i18n
(
"Unable to modify this to-do, "
"because it cannot be locked."
));
}
...
...
@@ -2154,7 +2154,7 @@ void AgendaView::slotIncidencesDropped(const QList<QUrl> &items, const QPoint &g
todo
->
setDtDue
(
newTime
);
todo
->
setAllDay
(
allDay
);
if
(
!
changer
()
->
addIncidence
(
todo
,
this
))
{
KMessageBox
::
sorry
(
this
,
i18n
(
"Unable to save %1
\"
%2
\"
."
,
i18n
(
todo
->
type
()),
todo
->
summary
()));
KMessageBox
::
error
(
this
,
i18n
(
"Unable to save %1
\"
%2
\"
."
,
i18n
(
todo
->
type
()),
todo
->
summary
()));
}
}
}
...
...
src/month/monthitem.cpp
View file @
e5171f92
...
...
@@ -425,7 +425,7 @@ void IncidenceMonthItem::updateDates(int startOffset, int endOffset)
changer
->
createIncidence
(
newIncidence
,
item
.
parentCollection
(),
parentWidget
());
changer
->
endAtomicOperation
();
}
else
{
KMessageBox
::
sorry
(
parentWidget
(),
KMessageBox
::
error
(
parentWidget
(),
i18n
(
"Unable to add the exception item to the calendar. "
"No change will be done."
),
i18n
(
"Error Occurred"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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