Wrap code for better readability

This commit is contained in:
Simon De Backer
2020-08-18 20:08:32 +02:00
parent 790cdc5229
commit 99abc165d6
17 changed files with 274 additions and 119 deletions

View File

@@ -49,7 +49,9 @@ void ElementCollectionItem::clearData()
@return : The last item that exist in this hierarchy,
or nullptr can't find (an error was occurred, or path already exist)
*/
ElementCollectionItem *ElementCollectionItem::lastItemForPath(const QString &path, QString &no_found_path)
ElementCollectionItem *ElementCollectionItem::lastItemForPath(
const QString &path,
QString &no_found_path)
{
QStringList str_list = path.split("/");
if (str_list.isEmpty()) return nullptr;
@@ -76,7 +78,8 @@ ElementCollectionItem *ElementCollectionItem::lastItemForPath(const QString &pat
@param name
@return
*/
ElementCollectionItem *ElementCollectionItem::childWithCollectionName(const QString& name) const
ElementCollectionItem *ElementCollectionItem::childWithCollectionName(
const QString& name) const
{
rowCount();
foreach (QStandardItem *qsi, directChilds()) {