literaldraw
clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

svgview.cpp
text/x-c++src

Download raw (435 bytes)

#include "svgview.h"
#include "ui_svgview.h"

SvgView::SvgView(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::SvgView)
{
    ui->setupUi(this);
}

SvgView::~SvgView()
{
    delete ui;
}


void SvgView::updateSvg(const QString &s)
{
	ui->textBrowser->setPlainText(s);
}


QString SvgView::getSVG()
{
	return ui->textBrowser->toPlainText();
}

const bool SvgView::doRender() const
{
    return ui->renderCheckBox->isChecked();
}