Commit 817cf263 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Minor stylistic changes of the Options->Settings dialog in the workbench.

parent ecf3e70d
......@@ -2365,7 +2365,7 @@ void OptionsDialog::activate_options_cancel()
OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
: QDialog(parent), wtt(parent_ctx)
{
setMinimumSize(650, 450);
setMinimumSize(600, 360);
setWindowTitle(fl("Options"));
setAttribute(Qt::WA_DeleteOnClose);
......@@ -2377,10 +2377,12 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
QVBoxLayout* hier_vbox = new QVBoxLayout();
hier_vbox->addWidget(hier_label);
hier_vbox->setAlignment(hier_label, Qt::AlignHCenter);
hier_vbox->addWidget(wtt->enable_comment_w);
hier_vbox->addWidget(wtt->enable_revisions_w);
hier_vbox->addWidget(wtt->show_plant_w);
hier_vbox->addWidget(wtt->show_node_w);
hier_vbox->addStretch(1);
QLabel* entry_label = new QLabel(fl("Entry"));
wtt->show_class_w = new QCheckBox(fl("Class"));
......@@ -2393,6 +2395,7 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
QVBoxLayout* entry_vbox = new QVBoxLayout();
entry_vbox->addWidget(entry_label);
entry_vbox->setAlignment(entry_label, Qt::AlignHCenter);
entry_vbox->addWidget(wtt->show_class_w);
entry_vbox->addWidget(wtt->show_alias_w);
entry_vbox->addWidget(wtt->show_descrip_w);
......@@ -2400,6 +2403,7 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
entry_vbox->addWidget(wtt->show_objxref_w);
entry_vbox->addWidget(wtt->show_attrref_w);
entry_vbox->addWidget(wtt->show_attrxref_w);
entry_vbox->addStretch(1);
QLabel* build_label = new QLabel(fl("Build"));
wtt->build_force_w = new QCheckBox(fl("Force"));
......@@ -2412,6 +2416,7 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
QVBoxLayout* build_vbox = new QVBoxLayout();
build_vbox->addWidget(build_label);
build_vbox->setAlignment(build_label, Qt::AlignHCenter);
build_vbox->addWidget(wtt->build_force_w);
build_vbox->addWidget(wtt->build_debug_w);
build_vbox->addWidget(wtt->build_crossref_w);
......@@ -2419,6 +2424,7 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
build_vbox->addWidget(wtt->build_crossrefgraph_w);
build_vbox->addWidget(wtt->build_manual_w);
build_vbox->addWidget(wtt->build_nocopy_w);
build_vbox->addStretch(1);
QHBoxLayout* hbox = new QHBoxLayout();
hbox->addLayout(hier_vbox);
......@@ -2445,6 +2451,11 @@ OptionsDialog::OptionsDialog(WttQt* parent_ctx, QWidget* parent)
setLayout(vbox);
show();
int size = wtt->show_node_w->height();
hier_vbox->setSpacing(size);
entry_vbox->setSpacing(size);
build_vbox->setSpacing(size);
}
void WttQt::create_options_dialog()
......
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