mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-09 14:04:44 +03:00
Zommer has been moved to own module
Zommer has been moved to own module
This commit is contained in:
28
limereport/lrgraphicsviewzoom.h
Normal file
28
limereport/lrgraphicsviewzoom.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef GRAPHICSVIEWZOOM_H
|
||||
#define GRAPHICSVIEWZOOM_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QGraphicsView>
|
||||
|
||||
namespace LimeReport {
|
||||
|
||||
class GraphicsViewZoomer : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GraphicsViewZoomer(QGraphicsView* view);
|
||||
void gentleZoom(double factor);
|
||||
void setModifiers(Qt::KeyboardModifiers modifiers);
|
||||
void setZoomFactorBase(double value);
|
||||
private:
|
||||
QGraphicsView* m_view;
|
||||
Qt::KeyboardModifiers m_modifiers;
|
||||
double m_zoomFactorBase;
|
||||
QPointF m_targetScenePos, m_targetViewportPos;
|
||||
bool eventFilter(QObject* object, QEvent* event);
|
||||
signals:
|
||||
void zoomed();
|
||||
};
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
#endif // GRAPHICSVIEWZOOM_H
|
Reference in New Issue
Block a user