Graphics view for MaskEditorCanvas.
Definition at line 26 of file MaskGraphicsView.h.
◆ MaskGraphicsView()
MaskGraphicsView::MaskGraphicsView |
( |
QGraphicsScene * |
scene, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Definition at line 31 of file MaskGraphicsView.cpp.
32 : QGraphicsView(scene, parent)
35 setObjectName(
"MaskGraphicsView");
36 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
37 setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing);
38 setStyleSheet(
"QGraphicsView { border-style: none; }");
39 setMouseTracking(
true);
double m_current_zoom_value
◆ cancelCurrentDrawing()
void MaskGraphicsView::cancelCurrentDrawing |
( |
| ) |
|
|
private |
◆ changeActivityRequest
void MaskGraphicsView::changeActivityRequest |
( |
MaskEditorFlags::Activity |
| ) |
|
|
signal |
◆ decreazeZoomValue()
void MaskGraphicsView::decreazeZoomValue |
( |
| ) |
|
|
private |
◆ deleteSelectedRequest
void MaskGraphicsView::deleteSelectedRequest |
( |
| ) |
|
|
signal |
◆ increazeZoomValue()
void MaskGraphicsView::increazeZoomValue |
( |
| ) |
|
|
private |
◆ isControlButtonIsPressed()
bool MaskGraphicsView::isControlButtonIsPressed |
( |
QWheelEvent * |
event | ) |
|
|
private |
◆ keyPressEvent()
void MaskGraphicsView::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ keyReleaseEvent()
void MaskGraphicsView::keyReleaseEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ minimumSizeHint()
QSize MaskGraphicsView::minimumSizeHint |
( |
| ) |
const |
|
inlineoverride |
◆ onResetViewRequest
void MaskGraphicsView::onResetViewRequest |
( |
| ) |
|
|
slot |
◆ resizeEvent()
void MaskGraphicsView::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ setZoomValue()
void MaskGraphicsView::setZoomValue |
( |
double |
zoom_value | ) |
|
|
private |
◆ sizeHint()
QSize MaskGraphicsView::sizeHint |
( |
| ) |
const |
|
inlineoverride |
◆ updateSize
void MaskGraphicsView::updateSize |
( |
const QSize & |
newSize | ) |
|
|
slot |
◆ wheelEvent()
void MaskGraphicsView::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
overrideprotected |
Definition at line 48 of file MaskGraphicsView.cpp.
52 #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
53 centerOn(mapToScene(event->position().toPoint()));
55 centerOn(mapToScene(event->pos()));
57 if (event->angleDelta().y() > 0) {
62 if (horizontalScrollBar()->isVisible() || verticalScrollBar()->isVisible())
66 QGraphicsView::wheelEvent(event);
bool isControlButtonIsPressed(QWheelEvent *event)
References decreazeZoomValue(), increazeZoomValue(), and isControlButtonIsPressed().
◆ m_current_zoom_value
double MaskGraphicsView::m_current_zoom_value |
|
private |
The documentation for this class was generated from the following files: