Skip to content

Commit bbb839a

Browse files
committed
Fix #88 - properties sorted
1 parent b63dc70 commit bbb839a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/cegui/CEGUIManipulator.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,9 @@ void CEGUIManipulator::createPropertySet()
916916
auto it = subsets.find(category);
917917
if (it == subsets.end())
918918
{
919-
// Insertion delayed for sorting, see below
920-
parentSet = new QtnPropertySet(_propertySet);
919+
// Insertion into _propertySet delayed for sorting, see below
920+
parentSet = new QtnPropertySet(QtnPropertySet::SortOrder::Ascend);
921+
parentSet->setParent(_propertySet);
921922
parentSet->setName(category);
922923
subsets.emplace(std::move(category), parentSet);
923924
}
@@ -1168,7 +1169,7 @@ void CEGUIManipulator::createPropertySet()
11681169
}
11691170

11701171
// We want to see some categories at the beginning of the list
1171-
const QStringList fixedOrderFirst = { "Element", "NamedElement", "Window" };
1172+
const QStringList fixedOrderFirst = { "Element", "Window" };
11721173
for (const QString& name : fixedOrderFirst)
11731174
{
11741175
auto itSet = subsets.find(name);

0 commit comments

Comments
 (0)