From: nds Date: Fri, 22 Aug 2008 08:52:00 +0000 (+0000) Subject: It's correction for histogram item to convenient using of inheritance. X-Git-Tag: TG_mergeto_BR_V5_DEV_finished~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab11d717067d466123495d7ffaed8166085c6d30;p=modules%2Fgui.git It's correction for histogram item to convenient using of inheritance. --- diff --git a/src/Plot2d/Plot2d_HistogramItem.cxx b/src/Plot2d/Plot2d_HistogramItem.cxx index 5b503c714..9893c8a10 100644 --- a/src/Plot2d/Plot2d_HistogramItem.cxx +++ b/src/Plot2d/Plot2d_HistogramItem.cxx @@ -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 ); diff --git a/src/Plot2d/Plot2d_HistogramItem.h b/src/Plot2d/Plot2d_HistogramItem.h index 37408a165..0e62a7293 100644 --- a/src/Plot2d/Plot2d_HistogramItem.h +++ b/src/Plot2d/Plot2d_HistogramItem.h @@ -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 m_BarItems; bool m_bCrossed; };