From 14267e3902d44a6a4e5f04d7b58ed6b9f11687e4 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Tue, 30 Sep 2014 15:42:33 -0700 Subject: [PATCH] Layout tweak. --- interface/src/ui/MetavoxelEditor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/src/ui/MetavoxelEditor.cpp b/interface/src/ui/MetavoxelEditor.cpp index be603983f9..becd70dc28 100644 --- a/interface/src/ui/MetavoxelEditor.cpp +++ b/interface/src/ui/MetavoxelEditor.cpp @@ -1345,7 +1345,8 @@ VoxelMaterialBoxTool::VoxelMaterialBoxTool(MetavoxelEditor* editor) : _snapToGrid->setChecked(true); QHBoxLayout* colorLayout = new QHBoxLayout(); - form->addRow("Color:", colorLayout); + form->addRow(colorLayout); + colorLayout->addWidget(new QLabel("Color:")); colorLayout->addWidget(_color = new QColorEditor(this), 1); connect(_color, &QColorEditor::colorChanged, this, &VoxelMaterialBoxTool::clearTexture); QPushButton* eraseButton = new QPushButton("Erase"); @@ -1477,7 +1478,8 @@ VoxelMaterialSphereTool::VoxelMaterialSphereTool(MetavoxelEditor* editor) : SphereTool(editor, "Set Voxel Material (Sphere)") { QHBoxLayout* colorLayout = new QHBoxLayout(); - _form->addRow("Color:", colorLayout); + _form->addRow(colorLayout); + colorLayout->addWidget(new QLabel("Color:")); colorLayout->addWidget(_color = new QColorEditor(this), 1); connect(_color, &QColorEditor::colorChanged, this, &VoxelMaterialSphereTool::clearTexture); QPushButton* eraseButton = new QPushButton("Erase");