X-Git-Url: http://git.maemo.org/git/?p=case;a=blobdiff_plain;f=src%2Fprogressbar.cpp;h=29d68a63bae719d8188f081367d20ac01d722ec1;hp=29ad8daf10aa52d9297382487c34327715d06b2f;hb=55d99074d0b0b5eca3530d0c0f683faee48f10f9;hpb=88f4a205b9c4053903f1bb5ea619a537e4f8a282 diff --git a/src/progressbar.cpp b/src/progressbar.cpp index 29ad8da..29d68a6 100644 --- a/src/progressbar.cpp +++ b/src/progressbar.cpp @@ -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; }