Commit aa6e61f3 authored by Julien Wintz's avatar Julien Wintz
Browse files

Fixing early states of splitters.

parent 9664cf85
......@@ -300,26 +300,6 @@ dtkComposerSceneNodeEditor::dtkComposerSceneNodeEditor(QWidget *parent) : QWidge
d->current_widget = NULL;
// d->bool_widget = new QWidget(this);
// d->f_b = new QRadioButton("false", d->bool_widget);
// d->t_b = new QRadioButton("true", d->bool_widget);
// d->t_b->blockSignals(true);
// d->g_b = new QButtonGroup(this);
// d->g_b->setExclusive(true);
// d->g_b->addButton(d->t_b);
// d->g_b->addButton(d->f_b);
// QHBoxLayout *bool_layout = new QHBoxLayout;
// bool_layout->setContentsMargins(0, 0, 0, 0);
// bool_layout->addWidget(d->t_b);
// bool_layout->addWidget(d->f_b);
// d->bool_widget->setLayout(bool_layout);
// d->bool_widget->setEnabled(false);
// d->bool_widget->setVisible(false);
// --
d->selector = new QComboBox(this);
......@@ -430,7 +410,6 @@ dtkComposerSceneNodeEditor::dtkComposerSceneNodeEditor(QWidget *parent) : QWidge
d->layout_widg_edit->addWidget(d->edit_s);
d->layout_widg_edit->addWidget(d->butn_f);
d->layout_widg_edit->addWidget(d->butn_d);
// d->layout_widg_edit->addWidget(d->bool_widget);
d->layout = new QVBoxLayout(this);
d->layout->setContentsMargins(0, 0, 0, 0);
......@@ -467,8 +446,6 @@ dtkComposerSceneNodeEditor::dtkComposerSceneNodeEditor(QWidget *parent) : QWidge
connect(d->butn_f, SIGNAL(clicked()), this, SLOT(onBrowse()));
connect(d->butn_d, SIGNAL(clicked()), this, SLOT(onBrowseDirectory()));
// connect(d->t_b, SIGNAL(toggled(bool)), this, SLOT(onValueChanged(bool)));
connect(d->select_implementation, SIGNAL(currentIndexChanged(const QString&)), this, SLOT(onImplementationChanged(const QString&)));
}
......@@ -575,21 +552,7 @@ void dtkComposerSceneNodeEditor::setNode(dtkComposerSceneNode *node)
foreach (dtkComposerScenePort *port, node->outputPorts())
d->output_ports->addOutputPort(port);
if (dtkComposerNodeBoolean *b_node = dynamic_cast<dtkComposerNodeBoolean *>(node->wrapee())) {
// if (b_node->value()) {
// d->t_b->setChecked(true);
// d->f_b->setChecked(false);
// } else {
// d->t_b->setChecked(false);
// d->f_b->setChecked(true);
// }
// d->t_b->blockSignals(false);
// d->bool_widget->setVisible(true);
// d->bool_widget->setEnabled(true);
} else if (dtkComposerNodeInteger *i_node = dynamic_cast<dtkComposerNodeInteger *>(node->wrapee())) {
if (dtkComposerNodeInteger *i_node = dynamic_cast<dtkComposerNodeInteger *>(node->wrapee())) {
d->spin_d->blockSignals(false);
d->spin_d->setVisible(true);
......@@ -647,11 +610,8 @@ void dtkComposerSceneNodeEditor::setNode(dtkComposerSceneNode *node)
object = object_node->variant().value<QObject *>();
// if (dtkComposerNodeLeafData *data_node = dynamic_cast<dtkComposerNodeLeafData *>(node->wrapee())) {
// if (data_node->isAbstractData()) {
int current_index = 0;
d->select_implementation->addItem("Choose implementation");
for (int i = 0; i < object_node->implementations().count(); ++i) {
......@@ -768,10 +728,6 @@ void dtkComposerSceneNodeEditor::clear(void)
d->selector->setEnabled(false);
d->selector->setVisible(false);
// d->t_b->blockSignals(true);
// d->bool_widget->setVisible(false);
// d->bool_widget->setEnabled(false);
d->spin_d->blockSignals(true);
d->spin_d->setVisible(false);
d->spin_d->setEnabled(false);
......
......@@ -43,6 +43,7 @@ dtkViewManager::dtkViewManager(QWidget *parent) : QFrame(parent), d(new dtkViewM
inner->addWidget(view_control);
inner->addWidget(d->view_list);
inner->addWidget(d->view_inspector);
inner->setSizes(QList<int>() << 32 << (parent->size().height()-32)/8 << (parent->size().height()-32)/2);
QSplitter *splitter = new QSplitter(this);
splitter->setHandleWidth(2);
......
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