-rw-r--r-- | libkcal/incidencebase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 1e99082..b5fe2e6 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -195,24 +195,26 @@ QDateTime IncidenceBase::dtStart() const | |||
195 | QString IncidenceBase::dtStartTimeStr() const | 195 | QString IncidenceBase::dtStartTimeStr() const |
196 | { | 196 | { |
197 | return KGlobal::locale()->formatTime(dtStart().time()); | 197 | return KGlobal::locale()->formatTime(dtStart().time()); |
198 | } | 198 | } |
199 | 199 | ||
200 | QString IncidenceBase::dtStartDateStr(bool shortfmt) const | 200 | QString IncidenceBase::dtStartDateStr(bool shortfmt) const |
201 | { | 201 | { |
202 | return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); | 202 | return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); |
203 | } | 203 | } |
204 | 204 | ||
205 | QString IncidenceBase::dtStartStr(bool shortfmt) const | 205 | QString IncidenceBase::dtStartStr(bool shortfmt) const |
206 | { | 206 | { |
207 | if ( doesFloat() ) | ||
208 | return KGlobal::locale()->formatDate(dtStart().date(),shortfmt); | ||
207 | return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); | 209 | return KGlobal::locale()->formatDateTime(dtStart(), shortfmt); |
208 | } | 210 | } |
209 | 211 | ||
210 | 212 | ||
211 | bool IncidenceBase::doesFloat() const | 213 | bool IncidenceBase::doesFloat() const |
212 | { | 214 | { |
213 | return mFloats; | 215 | return mFloats; |
214 | } | 216 | } |
215 | 217 | ||
216 | void IncidenceBase::setFloats(bool f) | 218 | void IncidenceBase::setFloats(bool f) |
217 | { | 219 | { |
218 | if (mReadOnly) return; | 220 | if (mReadOnly) return; |