[Gui] Sort Add Property Types

This commit is contained in:
VM4Dim
2023-02-12 06:12:48 +03:00
committed by Uwe
parent 889feae7d7
commit e85cf5df1f

View File

@@ -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)