ui: Save graph as image via context menu

bug id = 180
This commit is contained in:
Eberhard Graether
2016-09-06 15:16:49 +02:00
parent dd49fcd709
commit cbcf56f7dc
2 changed files with 40 additions and 0 deletions
+6
View File
@@ -31,6 +31,8 @@ protected:
void wheelEvent(QWheelEvent* event);
void contextMenuEvent(QContextMenuEvent* event);
signals:
void emptySpaceClicked();
@@ -38,6 +40,8 @@ private slots:
void updateTimer();
void stopTimer();
void exportGraph();
private:
bool moves() const;
@@ -57,6 +61,8 @@ private:
std::shared_ptr<QTimer> m_timer;
std::shared_ptr<QTimer> m_timerStopper;
QAction* m_exportGraphAction;
};
#endif // QT_GRAPHICS_VIEW_H