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
KAlarm
Commits
7e66f770
Commit
7e66f770
authored
Nov 15, 2016
by
Laurent Montel
Browse files
Fix some clazy warning
parent
0363a0af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kaevent.cpp
View file @
7e66f770
...
...
@@ -1588,9 +1588,7 @@ Alarm::Ptr KAEventPrivate::initKCalAlarm(const Event::Ptr &event, int startOffse
}
if
(
display
)
alarm
->
setCustomProperty
(
KACalendar
::
APPNAME
,
FONT_COLOUR_PROPERTY
,
QStringLiteral
(
"%1;%2;%3"
).
arg
(
mBgColour
.
name
())
.
arg
(
mFgColour
.
name
())
.
arg
(
mUseDefaultFont
?
QString
()
:
mFont
.
toString
()));
QStringLiteral
(
"%1;%2;%3"
).
arg
(
mBgColour
.
name
(),
mFgColour
.
name
(),
mUseDefaultFont
?
QString
()
:
mFont
.
toString
()));
break
;
}
case
DEFERRED_ALARM
:
...
...
@@ -4762,9 +4760,7 @@ void KAEventPrivate::setAudioAlarm(const Alarm::Ptr &alarm) const
alarm
->
setAudioAlarm
(
mAudioFile
);
// empty for a beep or for speaking
if
(
mSoundVolume
>=
0
)
alarm
->
setCustomProperty
(
KACalendar
::
APPNAME
,
VOLUME_PROPERTY
,
QStringLiteral
(
"%1;%2;%3;%4"
).
arg
(
QString
::
number
(
mSoundVolume
,
'f'
,
2
))
.
arg
(
QString
::
number
(
mFadeVolume
,
'f'
,
2
))
.
arg
(
mFadeSeconds
));
QStringLiteral
(
"%1;%2;%3;%4"
).
arg
(
QString
::
number
(
mSoundVolume
,
'f'
,
2
),
QString
::
number
(
mFadeVolume
,
'f'
,
2
),
QString
::
number
(
mFadeSeconds
)));
}
/******************************************************************************
...
...
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