Showing the changes to interface/src/ModelSelector.cpp (1 of 6 files). Show all
Unified · Split
| @@ -32,13 +32,6 @@ ModelSelector::ModelSelector() { · 31 unmodified lines | ||
| 32 | 32 | connect(_browseButton, &QPushButton::clicked, this, &ModelSelector::browse); |
| 33 | 33 | form->addRow("Model File:", _browseButton); |
| 34 | 34 | |
| 35 | − _modelType = new QComboBox(this); | |
| 36 | − | |
| 37 | − _modelType->addItem(AVATAR_HEAD_AND_BODY_STRING); | |
| 38 | − _modelType->addItem(AVATAR_ATTACHEMENT_STRING); | |
| 39 | − _modelType->addItem(ENTITY_MODEL_STRING); | |
| 40 | − form->addRow("Model Type:", _modelType); | |
| 41 | − | |
| 42 | 35 | QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); |
| 43 | 36 | connect(buttons, &QDialogButtonBox::accepted, this, &ModelSelector::accept); |
| 44 | 37 | connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::reject); |
| @@ -49,19 +42,6 @@ QFileInfo ModelSelector::getFileInfo() const { · 4 unmodified lines | ||
| 49 | 42 | return _modelFile; |
| 50 | 43 | } |
| 51 | 44 | |
| 52 | −FSTReader::ModelType ModelSelector::getModelType() const { | |
| 53 | − QString text = _modelType->currentText(); | |
| 54 | − | |
| 55 | −if (text == AVATAR_HEAD_AND_BODY_STRING) { | |
| 56 | − return FSTReader::HEAD_AND_BODY_MODEL; | |
| 57 | − } else if (text == AVATAR_ATTACHEMENT_STRING) { | |
| 58 | − return FSTReader::ATTACHMENT_MODEL; | |
| 59 | − } else if (text == ENTITY_MODEL_STRING) { | |
| 60 | − return FSTReader::ENTITY_MODEL; | |
| 61 | − } | |
| 62 | − Q_UNREACHABLE(); | |
| 63 | −} | |
| 64 | − | |
| 65 | 45 | void ModelSelector::accept() { |
| 66 | 46 | if (!_modelFile.isFile()) { |
| 67 | 47 | return; |