new style for the progressbars, display more info
[case] / src / progressbar.cpp
index 29ad8da..29d68a6 100644 (file)
@@ -25,6 +25,7 @@
 
 ProgressBar::ProgressBar(FileManipulatorThread *thread, QWidget *parent) :
     QProgressBar(parent),
+    paused(false),
     contextEvent(false),
     thread(thread)
 {
@@ -35,8 +36,14 @@ ProgressBar::ProgressBar(FileManipulatorThread *thread, QWidget *parent) :
     barFont.setPointSize(12);
     setFont(barFont);
     setMinimumHeight(44);
-    setStyle(new QPlastiqueStyle);
-    //progressBar->setStyle(new QMotifStyle);
+    setFormat("");
+    mainText = tr("gathering information...");
+}
+
+
+void ProgressBar::setIcons(const QPixmap &icon, const QPixmap &inverseIcon) {
+    bgIcon = icon;
+    fgIcon = inverseIcon;
 }