Skip to content

Commit

Permalink
Merge pull request nemomobile#8 from rburchell/master
Browse files Browse the repository at this point in the history
Remove FeedbackPlayer
  • Loading branch information
rburchell committed Jun 13, 2013
2 parents 6c31f15 + 367e6eb commit 6460b94
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 280 deletions.
158 changes: 0 additions & 158 deletions src/meego/feedbackplayer.cpp

This file was deleted.

97 changes: 0 additions & 97 deletions src/meego/feedbackplayer.h

This file was deleted.

16 changes: 1 addition & 15 deletions src/meego/mdeclarativestatusbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
#include <qgraphicsscene.h>
#include <qdebug.h>
#include "mwindowstate.h"
#include "feedbackplayer.h"

#ifdef HAVE_DBUS
#include <QDBusMessage>
Expand Down Expand Up @@ -128,8 +127,7 @@ MDeclarativeStatusBar::MDeclarativeStatusBar(QDeclarativeItem *parent) :
mousePressed(false),
feedbackDelay(false),
swipeGesture(false),
mOrientation(MDeclarativeScreen::Portrait),
feedbackPlayer(new FeedbackPlayer(this))
mOrientation(MDeclarativeScreen::Portrait)
{
setFlag(QGraphicsItem::ItemHasNoContents, false);
setAcceptedMouseButtons(Qt::LeftButton);
Expand Down Expand Up @@ -162,11 +160,6 @@ MDeclarativeStatusBar::MDeclarativeStatusBar(QDeclarativeItem *parent) :
MWindowState * windowState = MWindowState::instance();
connect(windowState, SIGNAL(activeChanged()), this, SLOT(updateXdamageEventSubscription()));
connect(this, SIGNAL(visibleChanged()), this, SLOT(updateXdamageEventSubscription()));

if (!feedbackPlayer->init("qt-components")) {
delete feedbackPlayer;
feedbackPlayer = 0;
}
}

MDeclarativeStatusBar::~MDeclarativeStatusBar()
Expand All @@ -175,7 +168,6 @@ MDeclarativeStatusBar::~MDeclarativeStatusBar()
disconnect(windowState, SIGNAL(activeChanged()), this, SLOT(updateXdamageEventSubscription()));

destroyXDamageForSharedPixmap();
delete feedbackPlayer;
}

void MDeclarativeStatusBar::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
Expand Down Expand Up @@ -335,9 +327,6 @@ void MDeclarativeStatusBar::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
firstPos = event->pos();

if (feedbackPlayer)
feedbackPlayer->sendPlaybackRequest(FeedbackPlayer::Press);

if (!mousePressed) {
mousePressed = true;
update();
Expand All @@ -361,9 +350,6 @@ void MDeclarativeStatusBar::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
return;
}

if (feedbackPlayer)
feedbackPlayer->sendPlaybackRequest(FeedbackPlayer::Release);

mousePressed = false;
update();

Expand Down
6 changes: 0 additions & 6 deletions src/meego/mdeclarativestatusbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,11 @@
#include <mdeclarativescreen.h>
#include <qglobal.h>

#include "feedbackplayer.h"


class QPixmap;
class QDBusServiceWatcher;
class QDBusPendingCallWatcher;
class QGraphicsSceneMouseEvent;
class QStyleOptionGraphicsItem;
class FeedbackPlayer;

class MDeclarativeStatusBar : public QDeclarativeItem
{
Expand Down Expand Up @@ -108,8 +104,6 @@ public Q_SLOTS:

MDeclarativeScreen::Orientation mOrientation;

FeedbackPlayer *feedbackPlayer;

Q_SIGNALS:
void orientationChanged();
void hasPixmapChanged();
Expand Down
6 changes: 2 additions & 4 deletions src/meego/meego.pro
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ SOURCES += \
shadereffectitem/shadereffectitem.cpp \
shadereffectitem/shadereffectsource.cpp \
shadereffectitem/shadereffectbuffer.cpp \
shadereffectitem/scenegraph/qsggeometry.cpp \
feedbackplayer.cpp
shadereffectitem/scenegraph/qsggeometry.cpp

HEADERS += \
mdeclarativestatusbar.h \
Expand Down Expand Up @@ -136,8 +135,7 @@ HEADERS += \
shadereffectitem/shadereffectitem.h \
shadereffectitem/shadereffectsource.h \
shadereffectitem/shadereffectbuffer.h \
shadereffectitem/scenegraph/qsggeometry.h \
feedbackplayer.h
shadereffectitem/scenegraph/qsggeometry.h


QML_FILES = \
Expand Down

0 comments on commit 6460b94

Please sign in to comment.