Salome HOME
refs #1327: debug of scaling operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_OrderedListWidget.cxx
index c17903a3b67f415d202c00af34d0df081614f63a..a6ef3229b156335e7ff510b9012524bdf408058c 100644 (file)
@@ -137,6 +137,31 @@ void HYDROGUI_OrderedListWidget::setObjects( const HYDROGUI_ListModel::Object2Vi
   }
 }
 
+void HYDROGUI_OrderedListWidget::setBackgroundColor (int theInd, QColor theColor)
+{
+  HYDROGUI_ListModel* aModel = getSourceModel();
+  if( aModel ) {
+    aModel->setBackgroundColor( theInd, theColor );
+  }
+}
+
+void HYDROGUI_OrderedListWidget::clearAllBackgroundColors ()
+{
+  HYDROGUI_ListModel* aModel = getSourceModel();
+  if( aModel ) {
+    aModel->clearAllBackgroundColors( );
+  }
+}
+
+
+ QColor HYDROGUI_OrderedListWidget::getBackgroundColor (int theInd) const
+ {
+   HYDROGUI_ListModel* aModel = getSourceModel();
+   if( aModel ) {
+     return aModel->getBackgroundColor( theInd );
+   }
+ }
+
 /**
   Returns the ordered list of objects.
   @return the list of objects