mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0031939: Coding - correction of spelling errors in comments [part 2]
Fix various typos Fixed via `codespell v2.0.dev`
This commit is contained in:
@@ -43,7 +43,7 @@ protected slots:
|
||||
//! \param thePosition a clicked point
|
||||
void onTreeViewHeaderContextMenuRequested (const QPoint& thePosition);
|
||||
|
||||
//! Changes clicked column visiblity
|
||||
//! Changes clicked column visibility
|
||||
void onColumnVisibilityChanged();
|
||||
|
||||
private:
|
||||
|
@@ -51,7 +51,7 @@ typedef QExplicitlySharedDataPointer<TreeModel_ItemBase> TreeModel_ItemBasePtr;
|
||||
//!
|
||||
//! The goal of the item is to be an data container of a custom model, based on the
|
||||
//! QAbstractItemModel. It provides the items architecture in order to realize the model
|
||||
//! functionality to find a parent model index by a child index and vise versa.
|
||||
//! functionality to find a parent model index by a child index and vice versa.
|
||||
//!
|
||||
//! The item should be created by the model and is saved in the internal pointer of the
|
||||
//! QModelIndex. Only model knows when the index is removed/created. By this cause,
|
||||
@@ -68,7 +68,7 @@ typedef QExplicitlySharedDataPointer<TreeModel_ItemBase> TreeModel_ItemBasePtr;
|
||||
//! because method data, for example, is called by the viewer repaint, in other words,
|
||||
//! constantly.
|
||||
//!
|
||||
//! It is possible to cache some information in the item. Do not give it throught the item
|
||||
//! It is possible to cache some information in the item. Do not give it through the item
|
||||
//! constructor. Realize method Init() to save the values in the item internal fields.
|
||||
//! If the information model is changed, call Reset() for this item, or the item's parent.
|
||||
//! It leads the item to non initialized state and by the next get of the item content,
|
||||
@@ -94,7 +94,7 @@ public:
|
||||
Standard_EXPORT virtual const Handle(Standard_Transient)& Object() const;
|
||||
|
||||
//! Resets the item and the child items content. Sets the initialized state to false.
|
||||
//! If the item has internal values, there should be reseted here.
|
||||
//! If the item has internal values, they should be reset here.
|
||||
Standard_EXPORT virtual void Reset();
|
||||
|
||||
//! Resets the item cached value for the parameter role.
|
||||
@@ -168,7 +168,7 @@ protected:
|
||||
virtual TreeModel_ItemBasePtr createChild (int theRow, int theColumn)
|
||||
{ (void)theRow; (void)theColumn; return TreeModel_ItemBasePtr(); }
|
||||
|
||||
//! Wraps the currrent item by shared pointer
|
||||
//! Wraps the current item by shared pointer
|
||||
//! \return the shared pointer to the current item
|
||||
Standard_EXPORT const TreeModel_ItemBasePtr currentItem();
|
||||
|
||||
|
@@ -79,7 +79,7 @@ public:
|
||||
//! Fills internal containers by item stream values
|
||||
Standard_EXPORT void Init();
|
||||
|
||||
//! If the item has internal values, there should be reseted here.
|
||||
//! If the item has internal values, they should be reset here.
|
||||
Standard_EXPORT virtual void Reset();
|
||||
|
||||
//! Returns number of table rows
|
||||
|
@@ -48,7 +48,7 @@ public:
|
||||
Standard_EXPORT virtual void Init() Standard_OVERRIDE;
|
||||
|
||||
//! Resets the item and the child items content. Sets the initialized state to false.
|
||||
//! If the item has internal values, there should be reseted here.
|
||||
//! If the item has internal values, they should be reset here.
|
||||
Standard_EXPORT virtual void Reset() Standard_OVERRIDE;
|
||||
|
||||
//! Returns number of displayed presentations
|
||||
|
@@ -35,7 +35,7 @@ class TreeModel_VisibilityState;
|
||||
|
||||
//! \class TreeModel_ModelBase
|
||||
//! \brief Implementation of the tree item based model of QAbstractItemModel.
|
||||
//! The TreeModel_ModelBase class defines the abstract model realization throught the base item architecture.
|
||||
//! The TreeModel_ModelBase class defines the abstract model realization through the base item architecture.
|
||||
//! By the model index creation, a base item is created and attached to the index.
|
||||
//! Each item contains an iformation about the item parent, position in the parent and
|
||||
//! the item's children. So, it is possible to get the model index relation from the item.
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
const Qt::Orientation theOrientation = Qt::Horizontal);
|
||||
|
||||
//! Returns single selected item in the cell of given orientation. If the orientation is Horizontal,
|
||||
//! in the cell id colum, one row should be selected.
|
||||
//! in the cell id column, one row should be selected.
|
||||
//! \param theIndices a container of selected indices
|
||||
//! \param theCellId column index if orientation is horizontal, row index otherwise
|
||||
//! \param theOrientation an orientation to apply the cell index
|
||||
|
@@ -58,7 +58,7 @@ public:
|
||||
//! - columns width
|
||||
//! \param theTreeView a view instance
|
||||
//! \param theItems [out] properties
|
||||
//! \param thePrefix peference item prefix
|
||||
//! \param thePrefix preference item prefix
|
||||
Standard_EXPORT static void SaveState (QTreeView* theTreeView, QMap<QString, QString>& theItems,
|
||||
const QString& thePrefix = QString());
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
//! \param theTreeView a view instance
|
||||
//! \param theKey property key
|
||||
//! \param theValue property value
|
||||
//! \param thePrefix peference item prefix
|
||||
//! \param thePrefix preference item prefix
|
||||
//! \return boolean value whether the property is applied to the tree view
|
||||
Standard_EXPORT static bool RestoreState (QTreeView* theTreeView, const QString& theKey, const QString& theValue,
|
||||
const QString& thePrefix = QString());
|
||||
|
@@ -43,7 +43,7 @@ public:
|
||||
//! Sets visibility state
|
||||
//! \param theIndex tree model index
|
||||
//! \param theState visibility state
|
||||
//! \param toEmitDataChanged boolean flag whether emit of the model should be done immediatelly
|
||||
//! \param toEmitDataChanged boolean flag whether emit of the model should be done immediately
|
||||
//! \return true if state is changed
|
||||
virtual bool SetVisible (const QModelIndex& theIndex, const bool theState, const bool toEmitDataChanged = true) = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user