Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
ViewProfile.h
1 #ifndef VIEW_PROFILE_H
2 #define VIEW_PROFILE_H
3 
4 #include <QGraphicsView>
5 
6 class QGraphicsRectItem;
7 
9 class ViewProfile : public QGraphicsView
10 {
11 public:
13  ViewProfile(QGraphicsScene *scene,
14  int minimumWidth,
15  QWidget *parent = 0);
16 
18  virtual void resizeEvent(QResizeEvent *event);
19 
20 private:
21  ViewProfile();
22 
23  void createFrame();
24  void refit();
25 
26  QGraphicsRectItem *m_frame;
27 };
28 
29 #endif // VIEW_PROFILE_H
virtual void resizeEvent(QResizeEvent *event)
Intercept resize events so the geometry can be scaled to perfectly fit into the window.
Definition: ViewProfile.cpp:47
Class that modifies QGraphicsView to present a two-dimensional profile, with movable dividers for sel...
Definition: ViewProfile.h:9