[Gui] Sort Add Property Types
This commit is contained in:
@@ -56,6 +56,8 @@ DlgAddProperty::DlgAddProperty(QWidget* parent,
|
||||
|
||||
std::vector<Base::Type> types;
|
||||
Base::Type::getAllDerivedFrom(Base::Type::fromName("App::Property"),types);
|
||||
std::sort(types.begin(), types.end(), [](Base::Type a, Base::Type b) { return strcmp(a.getName(), b.getName()) < 0; });
|
||||
|
||||
for(const auto& type : types) {
|
||||
ui->comboType->addItem(QString::fromLatin1(type.getName()));
|
||||
if(type == defType)
|
||||
|
||||
Reference in New Issue
Block a user