+/***************************************************************************
+ * 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>
#include <QApplication>
#include <QTextBlock>
-#include "graphicsscenerectmove.h"
GraphicsSceneRectMove::GraphicsSceneRectMove(QObject *parent): QGraphicsScene(parent), m_selectedItem(NULL), resizeMode(NoResize), m_tool(TITLE_RECTANGLE) {
//grabMouse();
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);