Diagram view : diagram isn't anymore optional in constructor

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3563 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-21 12:15:45 +00:00
parent 2147fca19b
commit 8477d4d928
2 changed files with 24 additions and 21 deletions

View File

@@ -33,28 +33,29 @@ class DVEventInterface;
class DiagramView : public QGraphicsView {
Q_OBJECT
// constructors, destructor
// constructors, destructor
public:
DiagramView(Diagram * = 0, QWidget * = 0);
virtual ~DiagramView();
DiagramView(Diagram *diagram, QWidget * = 0);
virtual ~DiagramView();
private:
DiagramView(const DiagramView &);
// attributes
private:
Diagram *scene;
QMenu *context_menu;
QAction *paste_here;
QAction *find_element_;
QPoint paste_here_pos;
bool fresh_focus_in_; ///< Indicate the focus was freshly gained
ElementsLocation next_location_;
QPoint next_position_;
QPointF center_view_;
QPointF rubber_band_origin;
DVEventInterface *m_event_interface;
DiagramView(const DiagramView &);
// attributes
Diagram *scene;
DVEventInterface *m_event_interface;
QMenu *context_menu;
QAction *paste_here;
QAction *find_element_;
QPoint paste_here_pos;
QPoint next_position_;
QPointF center_view_;
QPointF rubber_band_origin;
bool fresh_focus_in_; ///< Indicate the focus was freshly gained
ElementsLocation next_location_;
// methods
public:
QString title() const;