7#include <QGraphicsRectItem>
20 QGraphicsView (scene,
parent)
34void ViewProfile::createFrame ()
36 m_frame =
new QGraphicsRectItem (0, 0, 100, 100);
39 scene()->addItem (m_frame);
42void ViewProfile::refit ()
57 QGraphicsView::resizeEvent (
event);
const int INNER_RADIUS_MIN
const double VIEW_PROFILE_X_MIN
const double VIEW_PROFILE_Y_MAX
const double VIEW_PROFILE_X_MAX
const double VIEW_PROFILE_Y_MIN
const double SLOP_ON_SIDES
ViewProfile(QGraphicsScene *scene, int minimumWidth, QWidget *parent=0)
Single constructor.
virtual void resizeEvent(QResizeEvent *event)
Intercept resize events so the geometry can be scaled to perfectly fit into the window.