public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in kde-base/plasma-workspace/files: 4.3.3-progress_indicator.patch
@ 2009-11-22 12:02 Tomas Chvatal (scarabeus)
  0 siblings, 0 replies; 2+ messages in thread
From: Tomas Chvatal (scarabeus) @ 2009-11-22 12:02 UTC (permalink / raw
  To: gentoo-commits

scarabeus    09/11/22 12:02:10

  Added:                4.3.3-progress_indicator.patch
  Log:
  Revision bump to fix indicator issues per bug #292235.
  (Portage version: 2.2_rc51/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  kde-base/plasma-workspace/files/4.3.3-progress_indicator.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/plasma-workspace/files/4.3.3-progress_indicator.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/plasma-workspace/files/4.3.3-progress_indicator.patch?rev=1.1&content-type=text/plain

Index: 4.3.3-progress_indicator.patch
===================================================================
--- plasma/applets/systemtray/ui/jobwidget.cpp	2009/10/31 23:47:17	1043182
+++ plasma/applets/systemtray/ui/jobwidget.cpp	2009/10/31 23:48:31	1043183
@@ -208,6 +208,16 @@
     m_meter->setValue(m_job->percentage());
 
     if (m_job) {
+        if (m_job->state() == SystemTray::Job::Running) {
+            //Update the ETA and job speed
+            if (m_job->eta()) {
+                m_eta->setText(i18n("%1 (%2 remaining)", m_job->speed(),
+                                 KGlobal::locale()->formatDuration(m_job->eta())));
+            } else {
+                m_eta->setText(QString());
+            }
+        }
+
         if (m_job->labels().count() > 0) {
             labelName0 = m_job->labels().value(0).first;
             label0 = m_job->labels().value(0).second;
--- plasma/applets/systemtray/ui/jobwidget.h	2009/10/31 23:47:17	1043182
+++ plasma/applets/systemtray/ui/jobwidget.h	2009/10/31 23:48:31	1043183
@@ -61,10 +61,10 @@
         void detailsClicked();
         void destroyExtenderItem();
         void scheduleUpdateJob();
+        void updateJobState();
 
     private:
         void updateLabels();
-        void updateJobState();
         void updateJob();
 
         Plasma::ExtenderItem *m_extenderItem;
--- plasma/dataengines/applicationjobs/kuiserverengine.cpp	2009/10/31 23:47:17	1043182
+++ plasma/dataengines/applicationjobs/kuiserverengine.cpp	2009/10/31 23:48:31	1043183
@@ -178,6 +178,8 @@
 void JobView::setSpeed(qlonglong bytesPerSecond)
 {
     m_speed = bytesPerSecond;
+    setData("speed", speedString());
+    scheduleUpdate();
 }
 
 QString JobView::speedString() const






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in kde-base/plasma-workspace/files: 4.3.3-progress_indicator.patch
@ 2010-08-21 20:31 Tomas Chvatal (scarabeus)
  0 siblings, 0 replies; 2+ messages in thread
From: Tomas Chvatal (scarabeus) @ 2010-08-21 20:31 UTC (permalink / raw
  To: gentoo-commits

scarabeus    10/08/21 20:31:54

  Removed:              4.3.3-progress_indicator.patch
  Log:
  rm
  (Portage version: 2.2_rc67/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-21 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-21 20:31 [gentoo-commits] gentoo-x86 commit in kde-base/plasma-workspace/files: 4.3.3-progress_indicator.patch Tomas Chvatal (scarabeus)
  -- strict thread matches above, loose matches on Subject: below --
2009-11-22 12:02 Tomas Chvatal (scarabeus)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox