Gui: [skip ci] whitespace improvements

This commit is contained in:
wmayer
2022-10-20 21:26:53 +02:00
parent 16c52bb18c
commit fba6a718eb
3 changed files with 8 additions and 7 deletions

View File

@@ -331,8 +331,8 @@ void PropertyView::onSelectionChanged(const SelectionChanges& msg)
timer->start(ViewParams::instance()->getPropertyViewTimer());
}
void PropertyView::onTimer() {
void PropertyView::onTimer()
{
timer->stop();
if(!this->isSelectionAttached()) {

View File

@@ -252,7 +252,7 @@ void PropertyItem::insertChild(int index, PropertyItem *child)
*/
void PropertyItem::removeChildren(int from, int to)
{
int count = to-from+1;
int count = to - from + 1;
for (int i=0; i<count; i++) {
PropertyItem* child = childItems.takeAt(from);
delete child;

View File

@@ -414,11 +414,12 @@ void PropertyModel::buildUp(const PropertyModel::PropertyList& props)
int last = groupInfo.groupItem->childCount();
int first = static_cast<int>(groupInfo.children.size());
if (last > first) {
QModelIndex midx = this->index(groupInfo.groupItem->_row,0,QModelIndex());
beginRemoveRows(midx, first, last-1);
groupInfo.groupItem->removeChildren(first, last-1);
QModelIndex midx = this->index(groupInfo.groupItem->_row, 0, QModelIndex());
beginRemoveRows(midx, first, last - 1);
groupInfo.groupItem->removeChildren(first, last - 1);
endRemoveRows();
} else {
}
else {
assert(last == first);
}
}