mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef VInspector_ViewModel_H
|
||||
#define VInspector_ViewModel_H
|
||||
@@ -42,9 +42,8 @@ class VInspector_ViewModel : public TreeModel_ModelBase
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
//! Constructor
|
||||
Standard_EXPORT VInspector_ViewModel (QObject* theParent);
|
||||
Standard_EXPORT VInspector_ViewModel(QObject* theParent);
|
||||
|
||||
//! Destructor
|
||||
virtual ~VInspector_ViewModel() {}
|
||||
@@ -55,23 +54,23 @@ public:
|
||||
//! Initialize the model by the given context
|
||||
//! \param theContext viewer context
|
||||
Standard_EXPORT Handle(AIS_InteractiveContext) GetContext() const;
|
||||
|
||||
|
||||
//! Initialize the model by the given context
|
||||
//! \param theContext viewer context
|
||||
Standard_EXPORT void SetContext (const Handle(AIS_InteractiveContext)& theContext);
|
||||
Standard_EXPORT void SetContext(const Handle(AIS_InteractiveContext)& theContext);
|
||||
|
||||
//! Returns tree view indices for the given pointers of presentable object
|
||||
//! \param thePointers a list of presentation pointers
|
||||
//! \param theParent an index of the parent item
|
||||
//! \param[out] container of indices
|
||||
Standard_EXPORT void FindPointers (const QStringList& thePointers,
|
||||
const QModelIndex& theParent,
|
||||
QModelIndexList& theFoundIndices);
|
||||
Standard_EXPORT void FindPointers(const QStringList& thePointers,
|
||||
const QModelIndex& theParent,
|
||||
QModelIndexList& theFoundIndices);
|
||||
|
||||
//! Returns tree model index of the presentation item in the tree view.
|
||||
//! \param thePresentation a presentation
|
||||
//! \return model index if the value is found or Null model index
|
||||
Standard_EXPORT QModelIndex FindIndex (const Handle(AIS_InteractiveObject)& thePresentation) const;
|
||||
Standard_EXPORT QModelIndex FindIndex(const Handle(AIS_InteractiveObject)& thePresentation) const;
|
||||
|
||||
//! Updates tree model
|
||||
Standard_EXPORT void UpdateTreeModel();
|
||||
@@ -79,8 +78,8 @@ public:
|
||||
protected:
|
||||
//! Creates root item
|
||||
//! \param theColumnId index of a column
|
||||
Standard_EXPORT virtual TreeModel_ItemBasePtr createRootItem (const int theColumnId) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT virtual TreeModel_ItemBasePtr createRootItem(const int theColumnId)
|
||||
Standard_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user