summaryrefslogtreecommitdiff
path: root/src/ProgressWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ProgressWidget.h')
-rw-r--r--src/ProgressWidget.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ProgressWidget.h b/src/ProgressWidget.h
new file mode 100644
index 0000000..a609dbd
--- /dev/null
+++ b/src/ProgressWidget.h
@@ -0,0 +1,25 @@
+#ifndef PROGRESSWIDGET_H_
+#define PROGRESSWIDGET_H_
+
+#include "ui_ProgressWidget.h"
+
+class ProgressWidget : public QWidget, public Ui::ProgressWidget
+{
+ Q_OBJECT;
+ Q_PROPERTY(bool wasCanceled READ wasCanceled);
+
+public:
+ ProgressWidget(QWidget *parent = NULL);
+ bool wasCanceled() const;
+
+public slots:
+ void setRange(int minimum, int maximum);
+ void setValue(int progress);
+ void cancel();
+
+private:
+ bool wascanceled;
+
+};
+
+#endif
contact: Jan Huwald // Impressum