X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=bottombar.cpp;h=09faf6ceb6312d6a3c446c630487af76fb1134ae;hp=9ae4ea58b6091292cea69b2739ba2e348860c4c9;hb=a20498e05a0b00c41521182cf972294d9ae1269f;hpb=e0d6c54e46dd9b0f6a3ae40da87dc4e2fcee5424 diff --git a/bottombar.cpp b/bottombar.cpp index 9ae4ea5..09faf6c 100644 --- a/bottombar.cpp +++ b/bottombar.cpp @@ -6,6 +6,14 @@ bottomBar::bottomBar(QWidget *parent) : ui(new Ui::bottomBar) { ui->setupUi(this); + QRect screenGeometry = QApplication::desktop()->screenGeometry(); + QGraphicsScene *main = new QGraphicsScene(0,0,screenGeometry.width(),15); + ui->graphicsView->setScene(main); + ui->graphicsView->setSceneRect(0,0,screenGeometry.width(),15); + ui->graphicsView->setTransformationAnchor(QGraphicsView::NoAnchor); + main->setBackgroundBrush(this->palette().window()); + main->setSceneRect(0,0,screenGeometry.width(),15); + main->addRect(0,0,screenGeometry.width()/2,15,QPen(Qt::white),QBrush(Qt::white)); } bottomBar::~bottomBar()