Skip to content

Commit

Permalink
fixed some warnings, removed deprecated classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nebomuk committed Jan 7, 2018
1 parent f25a87c commit 34affc7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 170 deletions.
8 changes: 0 additions & 8 deletions src/graphicsengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ GraphicsEngine::GraphicsEngine(QObject *parent) :
explosionImages_ << image.scaledToWidth(qRound(explosionWidth*1.5f),Qt::SmoothTransformation);
}

QList<QSvgRenderer*> renderers;
for(int i = 0; i<11; ++i)
renderers.push_back(new QSvgRenderer(":hitpointsBar_images/hitpointsBar" + QString::number(i) + ".svg"));

SvgCache * hitpointsBarCache = new SvgCache;
hitpointsBarCache->addSvgRenderers(renderers);
hitpointsBarImages_ << hitpointsBarCache->images();

hideTextTimer_.setSingleShot(true);
connect(&hideTextTimer_,SIGNAL(timeout()),this,SLOT(hideText()));

Expand Down
1 change: 0 additions & 1 deletion src/graphicsengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public slots:

private:
ImageList explosionImages_;
ImageList hitpointsBarImages_;
QList<AnimatedItem*> explosions;
QList<Vehicle*> projectiles_;
QList<Vehicle*> asteroids_;
Expand Down
102 changes: 0 additions & 102 deletions src/sdlsound.cpp

This file was deleted.

56 changes: 0 additions & 56 deletions src/sdlsound.h

This file was deleted.

1 change: 0 additions & 1 deletion src/soundengine.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "soundengine.h"
#include "sdlsound.h"
#include <QDir>
#include <QMessageBox>
#include "mocksound.h"
Expand Down
2 changes: 0 additions & 2 deletions tasteroids.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ QT += qml quick widgets
QT += 3dcore 3drender 3dinput 3dquick qml quick 3dquickextras

HEADERS += src/vehicle.h \
src/sdlsound.h \
src/globalvariables.h \
src/movingitem.h \
src/centerrectinrect.h \
Expand Down Expand Up @@ -74,7 +73,6 @@ SOURCES += src/vehicle.cpp \
src/movingitem.cpp \
src/graphicsview.cpp \
src/graphicsengine.cpp \
src/sdlsound.cpp \
src/main.cpp \
src/svgcache.cpp \
src/asteroidcolorizer.cpp \
Expand Down

0 comments on commit 34affc7

Please sign in to comment.