Commit 31ba535e authored by Julien Wintz's avatar Julien Wintz
Browse files

Code beautifying.

parent e7055e93
......@@ -146,24 +146,26 @@ void dtkComposerWidget::setFactory(dtkComposerNodeFactory *factory)
void dtkComposerWidget::setWriter(dtkComposerWriter *writer)
{
if(writer) {
delete d->writer;
if(writer) {
d->writer = writer;
d->writer->setScene(d->scene);
}
delete d->writer;
d->writer = writer;
d->writer->setScene(d->scene);
}
}
void dtkComposerWidget::setReader(dtkComposerReader *reader)
{
if(reader) {
delete d->reader;
if(reader) {
d->reader = reader;
d->reader->setFactory(d->factory);
d->reader->setScene(d->scene);
d->reader->setGraph(d->graph);
}
delete d->reader;
d->reader = reader;
d->reader->setFactory(d->factory);
d->reader->setScene(d->scene);
d->reader->setGraph(d->graph);
}
}
bool dtkComposerWidget::open(const QUrl& url)
......
/* dtkComposerWidget.h ---
*
* Author: tkloczko
* Copyright (C) 2011 - Thibaud Kloczko, Inria.
*/
// Version: $Id$
//
//
/* Commentary:
*
*/
// Commentary:
//
//
/* Change log:
*
*/
// Change Log:
//
//
// Code:
#pragma once
......@@ -83,3 +83,6 @@ public:
private:
dtkComposerWidgetPrivate *d;
};
//
// dtkComposerWidget.h ends here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment