All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
eafd18dac0
commit
25c3ba7338
@@ -260,8 +260,7 @@ static PropertyItem* createPropertyItem(App::Property* prop)
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
auto item =
|
||||
static_cast<PropertyItem*>(PropertyItemFactory::instance().createPropertyItem(editor));
|
||||
auto item = static_cast<PropertyItem*>(PropertyItemFactory::instance().createPropertyItem(editor));
|
||||
if (!item) {
|
||||
qWarning("No property item for type %s found\n", editor);
|
||||
}
|
||||
@@ -272,8 +271,9 @@ PropertyModel::GroupInfo& PropertyModel::getGroupInfo(App::Property* prop)
|
||||
{
|
||||
const char* group = prop->getGroup();
|
||||
bool isEmpty = Base::Tools::isNullOrEmpty(group);
|
||||
QString groupName =
|
||||
QString::fromLatin1(isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group);
|
||||
QString groupName = QString::fromLatin1(
|
||||
isEmpty ? QT_TRANSLATE_NOOP("App::Property", "Base") : group
|
||||
);
|
||||
|
||||
auto res = groupItems.insert(std::make_pair(groupName, GroupInfo()));
|
||||
if (res.second) {
|
||||
@@ -454,11 +454,7 @@ void PropertyModel::insertOrMoveChildren()
|
||||
}
|
||||
else {
|
||||
flushChanges();
|
||||
beginMoveRows(createIndex(groupItem->row(), 0, groupItem),
|
||||
oldRow,
|
||||
oldRow,
|
||||
midx,
|
||||
row);
|
||||
beginMoveRows(createIndex(groupItem->row(), 0, groupItem), oldRow, oldRow, midx, row);
|
||||
if (groupItem == groupInfo.groupItem) {
|
||||
groupInfo.groupItem->moveChild(oldRow, row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user