[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/kipi-plugins/common/libkipiplugins
From:       Aurélien Gâteau <aurelien.gateau () free ! fr>
Date:       2008-11-01 19:10:56
Message-ID: 1225566656.132297.8638.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 878766 by gateau:

New properties: progress and total.


 M  +20 -0     batchprogressdialog.cpp  
 M  +7 -0      batchprogressdialog.h  


--- trunk/extragear/graphics/kipi-plugins/common/libkipiplugins/batchprogressdialog.cpp #878765:878766
@@ -151,4 +151,24 @@
     d->progress->setValue(current);
 }
 
+int BatchProgressDialog::progress() const
+{
+    return d->progress->value();
+}
+
+int BatchProgressDialog::total() const
+{
+    return d->progress->maximum();
+}
+
+void BatchProgressDialog::setTotal(int total)
+{
+    d->progress->setMaximum(total);
+}
+
+void BatchProgressDialog::setProgress(int current)
+{
+    d->progress->setValue(current);
+}
+
 }  // namespace KIPIPlugins
--- trunk/extragear/graphics/kipi-plugins/common/libkipiplugins/batchprogressdialog.h #878765:878766
@@ -61,6 +61,13 @@
     void reset();
     void setProgress(int current, int total);
 
+    int progress() const;
+    int total() const;
+
+public Q_SLOTS:
+    void setProgress(int);
+    void setTotal(int total);
+
 private:
 
     BatchProgressDialogPriv *d;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic