added possiblity to keep the progress widget

- the Nokia Qt SDK UpdateInfo plugin progress should stay in the
    progress view till the user clicks on it
  - now the futureprogress knows the difference between:
    KeepOnFinishTillUserInteraction and KeepOnFinish

Reviewed-by: con
This commit is contained in:
Tim Jenssen
2010-10-15 17:22:45 +02:00
parent 3051fd4c98
commit 4af1d09535
4 changed files with 47 additions and 14 deletions

View File

@@ -46,6 +46,11 @@ class CORE_EXPORT FutureProgress : public QWidget
Q_OBJECT
public:
enum KeepOnFinishType {
DontKeepOnFinish = 0,
KeepOnFinishTillUserInteraction = 1,
KeepOnFinish = 2
};
explicit FutureProgress(QWidget *parent = 0);
virtual ~FutureProgress();
@@ -60,7 +65,7 @@ public:
void setType(const QString &type);
QString type() const;
void setKeepOnFinish(bool keep);
void setKeepOnFinish(KeepOnFinishType keepType);
bool keepOnFinish() const;
bool hasError() const;