Gui: [skip ci] whitespace improvements
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user