umbrello/umbrello
umlview.cpp
Go to the documentation of this file.
234 QMouseEvent fake(event->type(), event->pos(), Qt::LeftButton, Qt::LeftButton, event->modifiers());
246 QMouseEvent fake(event->type(), event->pos(), Qt::LeftButton, Qt::LeftButton, event->modifiers());
Type type() const
void resizeSceneToItems()
Sets the size of the scene to just fit on all the items.
Definition: umlscene.cpp:3497
virtual void resizeEvent(QResizeEvent *event)
Need to update the center so there is no jolt in the interaction after resizing the widget...
Definition: umlview.cpp:179
void setMatrix(const QMatrix &matrix, bool combine)
void centerOn(const QPointF &pos)
qreal x() const
qreal y() const
QPointF mapToScene(const QPoint &point) const
virtual void mousePressEvent(QMouseEvent *event)
Override standard method.
Definition: umlview.cpp:229
virtual void mouseReleaseEvent(QMouseEvent *event)
QRectF sceneRect() const
QPointF m_currentCenterPoint
holds the current centerpoint for the view, used for panning and zooming
Definition: umlview.h:66
const QPoint & pos() const
QGraphicsScene * scene() const
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
qreal m11() const
void scale(qreal sx, qreal sy)
qreal x() const
qreal y() const
void setInteractive(bool allowed)
Qt::MouseButton button() const
QPointF center() const
Definition: umlviewdialog.h:32
QRect rect() const
QMatrix matrix() const
virtual void mousePressEvent(QMouseEvent *event)
void show()
Overrides standard method from QWidget to resize scene when it's shown.
Definition: umlview.cpp:130
void slotZoomSliderMoved(int value)
Connected to by the zoomAction, a value of between 300 and 2200 is scaled to zoom to between 9% and 5...
Definition: uml.cpp:591
int delta() const
qreal width() const
This is the toolbar that is displayed on the right-hand side of the program window.
Definition: worktoolbar.h:40
void setX(qreal x)
void setY(qreal y)
void setDragMode(DragMode mode)
qreal height() const
bool contains(const QPointF &point) const
void show()
virtual void closeEvent(QCloseEvent *event)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QMatrix & scale(qreal sx, qreal sy)
virtual void mouseReleaseEvent(QMouseEvent *event)
Override standard method.
Definition: umlview.cpp:243
virtual void resizeEvent(QResizeEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.