Engauge Digitizer 2
Loading...
Searching...
No Matches
ViewProfile.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef VIEW_PROFILE_H
8#define VIEW_PROFILE_H
9
10#include <QGraphicsView>
11
12class QGraphicsRectItem;
13
15class ViewProfile : public QGraphicsView
16{
17public:
19 ViewProfile(QGraphicsScene *scene,
20 int minimumWidth,
21 QWidget *parent = 0);
22
24 virtual void resizeEvent(QResizeEvent *event);
25
26private:
28
29 void createFrame();
30 void refit();
31
32 QGraphicsRectItem *m_frame;
33};
34
35#endif // VIEW_PROFILE_H
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.