]> git.sesse.net Git - kdenlive/blobdiff - src/graphicsscenerectmove.cpp
[PATCH by Ray Lehtiniem] Delete some unused variables
[kdenlive] / src / graphicsscenerectmove.cpp
index 7fba479ba5117771305f8ebc5718645b9c848b7e..7126a93c85dd24f5dc698e6d51536f57f5a85632 100644 (file)
@@ -1,3 +1,24 @@
+/***************************************************************************
+ *   copyright (C) 2008 by Marco Gittler                                   *
+ *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.org)        *
+ *                                                                         *
+ *   This program is free software; you can redistribute it and/or modify  *
+ *   it under the terms of the GNU General Public License as published by  *
+ *   the Free Software Foundation; either version 2 of the License, or     *
+ *   (at your option) any later version.                                   *
+ *                                                                         *
+ *   This program is distributed in the hope that it will be useful,       *
+ *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
+ *   GNU General Public License for more details.                          *
+ *                                                                         *
+ *   You should have received a copy of the GNU General Public License     *
+ *   along with this program; if not, write to the                         *
+ *   Free Software Foundation, Inc.,                                       *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *
+ ***************************************************************************/
+
+#include "graphicsscenerectmove.h"
 
 #include <KDebug>
 #include <QGraphicsSceneMouseEvent>
@@ -11,7 +32,6 @@
 #include <QApplication>
 #include <QTextBlock>
 
-#include "graphicsscenerectmove.h"
 
 GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent): QGraphicsScene(parent), m_selectedItem(NULL), resizeMode(NoResize), m_tool(TITLE_RECTANGLE) {
     //grabMouse();
@@ -345,7 +365,6 @@ void GraphicsSceneRectMove::mouseMoveEvent(QGraphicsSceneMouseEvent* e) {
 void GraphicsSceneRectMove::wheelEvent(QGraphicsSceneWheelEvent * wheelEvent) {
     QList<QGraphicsView*> viewlist = views();
     //kDebug() << wheelEvent->delta() << " " << zoom;
-    double scale = 1.0;
     if (viewlist.size() > 0) {
         if (wheelEvent->delta() < 0) emit sceneZoom(true);
         else emit sceneZoom(false);