Hopefully this fixes the progress bar on the autobuilder
authorElias Woods <EliasWoods@gmail.com>
Thu, 6 Jan 2011 20:01:57 +0000 (15:01 -0500)
committerEli Woods <eli@eli-N50Vn.(none)>
Thu, 6 Jan 2011 20:01:57 +0000 (15:01 -0500)
Makefile
bottombar.cpp
bottombar.h
bottombar.ui

index 75253f8..ac47886 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #############################################################################
 # Makefile for building: groove
-# Generated by qmake (2.01a) (Qt 4.7.0) on: Wed Jan 5 17:21:15 2011
+# Generated by qmake (2.01a) (Qt 4.7.0) on: Thu Jan 6 02:27:50 2011
 # Project:  Groove.pro
 # Template: app
 # Command: /usr/bin/qmake -o Makefile Groove.pro
@@ -16,7 +16,7 @@ CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
 INCPATH       = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/phonon -I/usr/include/qt4 -I. -I/usr/include/qjson -I/usr/include -I/usr/include/qt4/phonon_compat -I. -I.
 LINK          = g++
 LFLAGS        = -Wl,-O1
-LIBS          = $(SUBLIBS)  -L/usr/lib -L/usr/local/lib -lqjson -lpulse-simple -lphonon -lQtGui -lQtNetwork -lQtCore -lpthread 
+LIBS          = $(SUBLIBS)  -L/usr/lib -L/usr/local/lib -lqjson -lphonon -lQtGui -lQtNetwork -lQtCore -lpthread 
 AR            = ar cqs
 RANLIB        = 
 QMAKE         = /usr/bin/qmake
index 7e7914e..8ca6d64 100644 (file)
@@ -7,14 +7,13 @@ bottomBar::bottomBar(QWidget *parent) :
     ui(new Ui::bottomBar)
 {
     ui->setupUi(this);
-    QRect screenGeometry = QApplication::desktop()->screenGeometry();
-    main = new QGraphicsScene(0,0,screenGeometry.width(),15);
+    main = new QGraphicsScene(0,0,this->width(),15);
     ui->graphicsView->setScene(main);
-    ui->graphicsView->setSceneRect(0,0,screenGeometry.width(),15);
-    ui->graphicsView->setTransformationAnchor(QGraphicsView::NoAnchor);
+    ui->graphicsView->setSceneRect(0,0,this->width(),15);
+    //ui->graphicsView->setTransformationAnchor(QGraphicsView::NoAnchor);
     main->setBackgroundBrush(this->palette().window());
-    main->setSceneRect(0,0,screenGeometry.width(),15);
-    this->playbackProgress = main->addRect(0,0,screenGeometry.width()/2,15,QPen(Qt::white),QBrush(Qt::white));
+    main->setSceneRect(0,0,this->width(),15);
+    this->playbackProgress = main->addRect(0,0,this->width()/2,15,QPen(Qt::white),QBrush(Qt::white));
 #ifndef Q_WS_MAEMO_5
     ui->stopButton->setIcon(QIcon::fromTheme("media-playback-stop"));
     ui->pauseB->setIcon(QIcon::fromTheme("media-playback-pause"));
@@ -32,7 +31,7 @@ bottomBar::~bottomBar()
 void bottomBar::setPlaybackProgress(qint64 min,qint64 max)
 {
 
-    this->playbackProgress->setRect(0,0,((float)min/(float)max)*QApplication::desktop()->screenGeometry().width(),15);
+    this->playbackProgress->setRect(0,0,((float)min/(float)max)*this->width(),15);
     //ui->graphicsView->update();
 }
 
index 0108b2f..af5eb12 100644 (file)
@@ -32,6 +32,7 @@ private slots:
     void on_pauseB_clicked();
     void on_backB_clicked();
 
+
 private:
     Ui::bottomBar *ui;
     QGraphicsRectItem *playbackProgress;
index 0a99b2b..15674e6 100644 (file)
      <property name="autoFillBackground">
       <bool>false</bool>
      </property>
+     <property name="verticalScrollBarPolicy">
+      <enum>Qt::ScrollBarAlwaysOff</enum>
+     </property>
+     <property name="horizontalScrollBarPolicy">
+      <enum>Qt::ScrollBarAlwaysOff</enum>
+     </property>
      <property name="interactive">
       <bool>false</bool>
      </property>