mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 02:45:52 +00:00
Added QGraphicsWebView to yosys-svgviewer
This commit is contained in:
parent
1268182f0b
commit
143a58bccc
4 changed files with 59 additions and 17 deletions
|
@ -42,6 +42,7 @@
|
|||
#define SVGVIEW_H
|
||||
|
||||
#include <QGraphicsView>
|
||||
#include <QGraphicsWebView>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QWheelEvent;
|
||||
|
@ -64,6 +65,7 @@ public:
|
|||
|
||||
public slots:
|
||||
void setHighQualityAntialiasing(bool highQualityAntialiasing);
|
||||
void setViewInteractive(bool enable);
|
||||
void setViewBackground(bool enable);
|
||||
void setViewOutline(bool enable);
|
||||
|
||||
|
@ -74,7 +76,9 @@ protected:
|
|||
private:
|
||||
RendererType m_renderer;
|
||||
|
||||
QString fn;
|
||||
QGraphicsItem *m_svgItem;
|
||||
QGraphicsWebView *m_webview;
|
||||
QGraphicsRectItem *m_backgroundItem;
|
||||
QGraphicsRectItem *m_outlineItem;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue