From 4c07d61257f65ad1b14902e01e8dea25d8c8bc78 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 22 Jan 2014 16:34:48 -0800 Subject: [PATCH] Get value from editor. --- interface/src/ui/MetavoxelEditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interface/src/ui/MetavoxelEditor.cpp b/interface/src/ui/MetavoxelEditor.cpp index 1659255e28..18d438cf61 100644 --- a/interface/src/ui/MetavoxelEditor.cpp +++ b/interface/src/ui/MetavoxelEditor.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -333,7 +334,8 @@ void MetavoxelEditor::resetState() { } void MetavoxelEditor::applyValue(const glm::vec3& minimum, const glm::vec3& maximum) { - + QWidget* editor = _value->layout()->itemAt(0)->widget(); + QVariant value = editor->metaObject()->userProperty().read(editor); } ProgramObject MetavoxelEditor::_gridProgram;