X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=bottombar.cpp;h=a5a5b960b810fb1bf42eda9c484af41be15b8e32;hp=8a12aa0b98001fee5a0dca16996cdff295458369;hb=810ad0d7cae54b293ddebe4e3874fd2f0e6e38a1;hpb=4adbefb36e52cb33564e704d8ea6a49425db8caf diff --git a/bottombar.cpp b/bottombar.cpp index 8a12aa0..a5a5b96 100644 --- a/bottombar.cpp +++ b/bottombar.cpp @@ -1,6 +1,7 @@ #include "bottombar.h" #include "ui_bottombar.h" + bottomBar::bottomBar(QWidget *parent) : QWidget(parent), ui(new Ui::bottomBar) @@ -20,10 +21,11 @@ bottomBar::~bottomBar() { delete ui; } -void bottomBar::setPlaybackProgress(int min, int max) +void bottomBar::setPlaybackProgress(qint64 min,qint64 max) { - this->playbackProgress->setRect(0,0,(min/max)*main->width(),15); - ui->graphicsView->update(); + + this->playbackProgress->setRect(0,0,((float)min/(float)max)*QApplication::desktop()->screenGeometry().width(),15); + //ui->graphicsView->update(); } void bottomBar::on_nextB_clicked()