#############################################################################
# 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
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
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"));
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();
}
<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>