mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 01:05:23 +08:00
6.5.3 clean
This commit is contained in:
18
tests/manual/examples/widgets/touch/pinchzoom/graphicsview.h
Normal file
18
tests/manual/examples/widgets/touch/pinchzoom/graphicsview.h
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#pragma once
|
||||
#include <QGraphicsView>
|
||||
|
||||
class GraphicsView : public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GraphicsView(QGraphicsScene *scene = nullptr, QWidget *parent = nullptr);
|
||||
|
||||
bool viewportEvent(QEvent *event) override;
|
||||
|
||||
private:
|
||||
qreal totalScaleFactor = 1;
|
||||
};
|
Reference in New Issue
Block a user