Bug 164812 - KGet should show progress in its title
Summary: KGet should show progress in its title
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 08:06 UTC by Raphael Kubo da Costa
Modified: 2008-07-22 20:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
updates the mainwindow caption with the active transfers percents (2.45 KB, patch)
2008-07-21 22:09 UTC, Javier goday
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2008-06-24 08:06:36 UTC
Version:           r823771 (using Devel)
Installed from:    Compiled sources
OS:                Linux

Currently, if I need to track the progress of my downloads, I need to focus KGet's window or click its icon in the system tray.

Tracking download progress could be made easier by putting it in the application's title (which should then look like "KGet - 70%" or something) and in its hint when hovering its systray icon.

In case of more than one download in progress, maybe an avarage should be displayed.
Comment 1 Javier goday 2008-07-21 22:07:59 UTC
Attach a patch that updates the mainwindow caption with the percent of the active transfers.

The mainwindow gets the percent from the core each 5 seconds with QTimer, maybe this is wrong ... 
maybe we can use the TransferGroupObserver and update the caption with the groupChangedEvent, but this can be launching events every few seconds.

Comment 2 Javier goday 2008-07-21 22:09:14 UTC
Created attachment 26318 [details]
updates the mainwindow caption with the active transfers percents
Comment 3 Lukas Appelhans 2008-07-21 22:21:23 UTC
Mmh, looks good to me, but probably move KGet::transfersPercent() to MainWindow, not sure...
Anyway: yes, imo we should use a TransferGroupObserver, but only update the title, when the Percent-Flag is used...

Lukas
Comment 4 Javier goday 2008-07-22 20:09:24 UTC
SVN commit 836657 by jgoday:

Add a modelobserver and a transfergroupobserver to mainwindow to update the percent in the window title
BUG:164812


 M  +82 -0     mainwindow.cpp  
 M  +42 -0     mainwindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=836657