Diffstat (limited to 'noncore/apps/checkbook/traninfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/traninfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/checkbook/traninfo.cpp b/noncore/apps/checkbook/traninfo.cpp index 506f567..4833af9 100644 --- a/noncore/apps/checkbook/traninfo.cpp +++ b/noncore/apps/checkbook/traninfo.cpp | |||
@@ -203,25 +203,25 @@ int TranInfoList::compareItems( QCollection::Item item1, QCollection::Item item2 | |||
203 | // --- toString --------------------------------------------------------------- | 203 | // --- toString --------------------------------------------------------------- |
204 | QString TranInfo::toString() | 204 | QString TranInfo::toString() |
205 | { | 205 | { |
206 | QString ret; | 206 | QString ret; |
207 | ret.sprintf("(%4d) %10s %4s %-10s %5.2f %5.2f", | 207 | ret.sprintf("(%4d) %10s %4s %-10s %5.2f %5.2f", |
208 | id(), | 208 | id(), |
209 | (const char *)datestr(), | 209 | (const char *)datestr(), |
210 | (const char *)number(), | 210 | (const char *)number(), |
211 | (const char *)desc(), | 211 | (const char *)desc(), |
212 | (withdrawal() ? -1 : 1) * amount(), | 212 | (withdrawal() ? -1 : 1) * amount(), |
213 | fee() | 213 | fee() |
214 | ); | 214 | ); |
215 | return(ret); | 215 | return(ret); |
216 | } | 216 | } |
217 | 217 | ||
218 | 218 | ||
219 | // --- findMostRecentByDesc --------------------------------------------------- | 219 | // --- findMostRecentByDesc --------------------------------------------------- |
220 | TranInfo *TranInfoList::findMostRecentByDesc( const QString &desc ) | 220 | TranInfo *TranInfoList::findMostRecentByDesc( const QString &desc ) |
221 | { | 221 | { |
222 | for(TranInfo *cur=last(); cur; cur=prev()) { | 222 | for(TranInfo *cur=last(); cur; cur=prev()) { |
223 | if( cur->desc()==desc ) | 223 | if( cur->desc()==desc ) |
224 | return( cur ); | 224 | return( cur ); |
225 | } | 225 | } |
226 | return(NULL); | 226 | return(NULL); |
227 | } \ No newline at end of file | 227 | } |