]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
It's correction for histogram item to convenient using of inheritance.
authornds <nds@opencascade.com>
Fri, 22 Aug 2008 08:52:00 +0000 (08:52 +0000)
committernds <nds@opencascade.com>
Fri, 22 Aug 2008 08:52:00 +0000 (08:52 +0000)
src/Plot2d/Plot2d_HistogramItem.cxx
src/Plot2d/Plot2d_HistogramItem.h

index 5b503c7148dc57107ee7b0d87a19f60cc0b991a0..9893c8a10bd935fe2595df6dd354901d80e18b78 100644 (file)
@@ -437,7 +437,7 @@ void Plot2d_HistogramItem::drawRectAndLowers( QPainter* thePainter,
 {
   QRect aRect = theRect;
   // theRect has inversed coordinates on Y axis. The top of the rect is bottom in standard QRect coordinates, and it bottom is the top.
-  if ( m_bCrossed && theOr == Qt::Horizontal )
+  if ( m_bCrossed )//&& theOr == Qt::Horizontal )
     aRect.setTop( getCrossedTop( theRect ) );
 
   drawBar( thePainter, Qt::Horizontal, aRect );
index 37408a1653da80a3be54f53a887d6de090082d35..0e62a72937a9d484cd097b4484e69d5551041a58 100644 (file)
@@ -87,11 +87,11 @@ public:
   void         setCrossItems( const bool& theCross ) { m_bCrossed = theCross; }
   bool         isCrossItems() const { return m_bCrossed; }
 
-private:
+protected:
   void         drawRectAndLowers( QPainter* , Qt::Orientation, const QRect& ) const;
   int          getCrossedTop( const QRect& ) const;
 
-private:
+protected:
   QList<QRect> m_BarItems;
   bool         m_bCrossed;
 };