This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qglengine/widgets/primitiveeditor.cpp

31 lines
791 B
C++

#include "primitiveeditor.h"
#include "ui_primitiveeditor.h"
#include <QMetaEnum>
PrimitiveEditor::PrimitiveEditor(QWidget *parent) : QWidget(parent), ui(new Ui::PrimitiveEditor) {
ui->setupUi(this);
QMetaEnum me = metaObject()->enumerator(0);
for (int i=0; i<me.keyCount(); ++i)
ui->comboPrimitives->addItem(me.key(i));
}
PrimitiveEditor::~PrimitiveEditor() {
delete ui;
}
void PrimitiveEditor::assignQGLView(QGLView * v) {
view = v;
// connect(view, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
// connect(view, SIGNAL(objectsPositionChanged()), this, SLOT(selectionChanged()));
// connect(view->scene(), SIGNAL(treeChanged()), this, SLOT(selectionChanged()));
// selectionChanged();
}
void PrimitiveEditor::showEditors() {
}