mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 21:33:35 +02:00
Revert changes to ModelPropertiesDialog
This commit is contained in:
parent
aa865680ab
commit
e3526467c7
2 changed files with 2 additions and 28 deletions
interface/src
|
@ -76,16 +76,13 @@ _geometry(geometry)
|
|||
connect(newFreeJoint, SIGNAL(clicked(bool)), SLOT(createNewFreeJoint()));
|
||||
}
|
||||
}
|
||||
_printButton = new QPushButton(tr("&Print Mapping"));
|
||||
|
||||
|
||||
QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok |
|
||||
QDialogButtonBox::Cancel | QDialogButtonBox::Reset);
|
||||
buttons->addButton(_printButton, QDialogButtonBox::ActionRole);
|
||||
connect(buttons, SIGNAL(accepted()), SLOT(accept()));
|
||||
connect(buttons, SIGNAL(rejected()), SLOT(reject()));
|
||||
connect(buttons->button(QDialogButtonBox::Reset), SIGNAL(clicked(bool)), SLOT(reset()));
|
||||
connect(_printButton, SIGNAL(clicked(bool)), SLOT(printJointMapping()));
|
||||
|
||||
|
||||
form->addRow(buttons);
|
||||
|
||||
// reset to initialize the fields
|
||||
|
@ -149,29 +146,8 @@ QVariantHash ModelPropertiesDialog::getMapping() const {
|
|||
}
|
||||
|
||||
return mapping;
|
||||
|
||||
}
|
||||
|
||||
|
||||
void ModelPropertiesDialog::printJointMapping() const {
|
||||
QVariantHash jointHash = getMapping();
|
||||
QHashIterator<QString, QVariant> i(getMapping());
|
||||
qDebug() << "STARTING...";
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
if(i.key() == "joint" || i.key() == "jointIndex") {
|
||||
QHashIterator<QString, QVariant> j(i.value().toHash());
|
||||
while(j.hasNext()) {
|
||||
j.next();
|
||||
qDebug() << j.key() << ": " << j.value().toString();
|
||||
}
|
||||
} else {
|
||||
qDebug() << i.key() << ": " << i.value().toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static void setJointText(QComboBox* box, const QString& text) {
|
||||
box->setCurrentIndex(qMax(box->findText(text), 0));
|
||||
}
|
||||
|
|
|
@ -39,7 +39,6 @@ private slots:
|
|||
void chooseTextureDirectory();
|
||||
void updatePivotJoint();
|
||||
void createNewFreeJoint(const QString& joint = QString());
|
||||
void printJointMapping() const;
|
||||
|
||||
private:
|
||||
QComboBox* createJointBox(bool withNone = true) const;
|
||||
|
@ -53,7 +52,6 @@ private:
|
|||
FBXGeometry _geometry;
|
||||
QLineEdit* _name = nullptr;
|
||||
QPushButton* _textureDirectory = nullptr;
|
||||
QPushButton* _printButton = nullptr;
|
||||
QDoubleSpinBox* _scale = nullptr;
|
||||
QDoubleSpinBox* _translationX = nullptr;
|
||||
QDoubleSpinBox* _translationY = nullptr;
|
||||
|
|
Loading…
Reference in a new issue