Registered Member
|
Hi,
Here's a patch to record and display the time a torrent was added. I called it the creation time for lack of something better, maybe time_added is nicer. It also fixes the fact that the total number of columns in the viewmodel is hardcoded. http://0xab.com/patches/ktorrent-time.diff A version of this patch from my git repository also strips away excess whitespace at the end of lines (there seems to be a lot). http://0xab.com/code/ktorrent.git
Last edited by 0xab on Tue Feb 02, 2010 5:16 pm, edited 1 time in total.
|
Moderator
|
Two problems:
- You should use KGlobal::locale()->formatDateTime to format QDateTime objects, this ensures that ktorrent sticks to global KDE settings - I don't like 'created', ktorrent already creates torrents, and it is not exactly the creation time of the torrent. Further more 'creation date' is an optional element in a torrent file, so this could lead to some confusion. So maybe 'date added' would be a better choice. |
Registered Member
|
Thanks for the feedback. Changed 'created' to 'added' and formatted the date using formatDateTime.
http://0xab.com/patches/ktorrent-added.diff
Last edited by 0xab on Tue Feb 02, 2010 5:16 pm, edited 1 time in total.
|
Moderator
|
|
Moderator
|
|
Registered Member
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]