add drawing view to the list of document views

This commit is contained in:
wmayer
2012-03-31 14:09:47 +02:00
parent 170ab978fb
commit 3f06cf75ea
5 changed files with 12 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ open(PyObject *self, PyObject *args)
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
QString fileName = QString::fromUtf8(Name);
// Displaying the image in a view
DrawingView* view = new DrawingView(Gui::getMainWindow());
DrawingView* view = new DrawingView(0, Gui::getMainWindow());
view->load(fileName);
view->setWindowIcon(Gui::BitmapFactory().pixmap("actions/drawing-landscape"));
view->setWindowTitle(QObject::tr("Drawing viewer"));
@@ -85,7 +85,7 @@ importer(PyObject *self, PyObject *args)
if (file.hasExtension("svg") || file.hasExtension("svgz")) {
QString fileName = QString::fromUtf8(Name);
// Displaying the image in a view
DrawingView* view = new DrawingView(Gui::getMainWindow());
DrawingView* view = new DrawingView(0, Gui::getMainWindow());
view->load(fileName);
view->setWindowIcon(Gui::BitmapFactory().pixmap("actions/drawing-landscape"));
view->setWindowTitle(QObject::tr("Drawing viewer"));