Fix a bug : Categories were not translated in GridAccount

This commit is contained in:
Grégory Soutadé 2012-03-20 14:50:37 +01:00
parent 223106fbfc
commit 391dc12304
2 changed files with 6 additions and 3 deletions

7
TODO
View File

@ -4,12 +4,13 @@ Using tabulation to navigate throw interface (Search Panel)
Windows version Windows version
Choosing accounts & categories position Choosing accounts & categories position
Cool for 0.3: Cool for 0.4:
Database auto saving at startup Database auto saving at startup
Use caches for created panels (avoid destroying/creating panels for nothing) Use caches for created panels (avoid destroying/creating panels for nothing)
Add search function to web view Add search function to web view
Need optimizations by caching operations and categories (using hastables) Need optimizations by caching operations and categories (using hastables)
Packaging for more distributions Packaging for more distributions
Optimizations in GridAccount (Add/Delete operation / multiple operations)
=============================================================== ===============================================================
Next version Next version
@ -35,4 +36,6 @@ it's not taken in account by UpdateStats
* If a sub operation is found using SearchPanel but not its parent * If a sub operation is found using SearchPanel but not its parent
it will not be displayed. In this case we must load whole meta. it will not be displayed. In this case we must load whole meta.
This bug can't be resolved without use of hashtable because of This bug can't be resolved without use of hashtable because of
complexity in searching this issue. complexity in searching this issue.
* Français not correctly spelled (cause UTF-8) in StatsPanel

View File

@ -115,7 +115,7 @@ GridAccount::GridAccount(KissCount* kiss, QWidget *parent,
categoryIt != user->_categories.end(); categoryIt != user->_categories.end();
categoryIt++, i++) categoryIt++, i++)
{ {
_categories[i] = categoryIt->name ; _categories[i] = _(categoryIt->name.toStdString().c_str()) ;
} }
resizeColumnToContents(TREE); resizeColumnToContents(TREE);