mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 03:48:44 +02:00
Get value from editor.
This commit is contained in:
parent
ff4795d9a5
commit
4c07d61257
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
#include <QGroupBox>
|
#include <QGroupBox>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
|
#include <QMetaProperty>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
|
@ -333,7 +334,8 @@ void MetavoxelEditor::resetState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetavoxelEditor::applyValue(const glm::vec3& minimum, const glm::vec3& maximum) {
|
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;
|
ProgramObject MetavoxelEditor::_gridProgram;
|
||||||
|
|
Loading…
Reference in a new issue