mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 04:27:45 +00:00
Nessecary API changes to gearview
This commit is contained in:
parent
d9da02cdeb
commit
d882d85eef
2 changed files with 9 additions and 1 deletions
|
@ -43,8 +43,11 @@ public:
|
|||
|
||||
void exportModel(const QString& fileName);
|
||||
|
||||
MDLPart& part() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void gearChanged();
|
||||
void modelReloaded();
|
||||
|
||||
void raceChanged();
|
||||
void genderChanged();
|
||||
|
@ -58,7 +61,6 @@ public Q_SLOTS:
|
|||
void setGender(Gender gender);
|
||||
void setLevelOfDetail(int lod);
|
||||
|
||||
private Q_SLOTS:
|
||||
void reloadModel();
|
||||
|
||||
private:
|
||||
|
|
|
@ -139,6 +139,12 @@ void GearView::reloadModel() {
|
|||
mdlPart->addModel(mdl, materials, currentLod);
|
||||
}
|
||||
}
|
||||
|
||||
Q_EMIT modelReloaded();
|
||||
}
|
||||
|
||||
MDLPart &GearView::part() const {
|
||||
return *mdlPart;
|
||||
}
|
||||
|
||||
#include "moc_gearview.cpp"
|
||||
|
|
Loading…
Add table
Reference in a new issue