Salome HOME
Increasing the sensitivity of selection to 10 pixels.
[modules/shaper.git] / src / XGUI / XGUI_DataTreeModel.h
index 42c609dac5f2c382b948a2cf30a2a80c7fa411a6..05c5f7e123961d7bea1ebad2ff907413198172eb 100644 (file)
@@ -25,6 +25,10 @@ public:
   //! Returns 0 if the given index is not index of a feature
   virtual FeaturePtr feature(const QModelIndex& theIndex) const = 0;
 
+  //! Returns QModelIndex which corresponds to the given feature
+  //! If the feature is not found then index is not valid
+  virtual QModelIndex featureIndex(const FeaturePtr& theFeature) const = 0;
+
   //! Returns parent index of the given feature
   virtual QModelIndex findParent(const FeaturePtr& theFeature) const = 0;