Salome HOME
0022773: [CEA 1314] Plot2d : The titles of the devices no visible after validating...
authorvsr <vsr@opencascade.com>
Wed, 15 Oct 2014 07:24:37 +0000 (11:24 +0400)
committervsr <vsr@opencascade.com>
Wed, 15 Oct 2014 07:24:37 +0000 (11:24 +0400)
src/Plot2d/Plot2d_ViewFrame.cxx
src/Plot2d/Plot2d_ViewFrame.h

index 1fd36d09b9a0d48de6fe6ef805860d634ef37935..ee2f212cd40d2c60d79f8adedae189e608a42471 100755 (executable)
@@ -4292,6 +4292,12 @@ void Plot2d_AxisScaleDraw::draw( QPainter* painter, const QPalette & palette) co
 }
 
 
+double Plot2d_AxisScaleDraw::extent( const QFont &font ) const
+{
+  QFontMetrics fm( font );
+  return QwtScaleDraw::extent( font ) + fm.height() * 2;
+}
+
 QwtText Plot2d_AxisScaleDraw::label( double value) const
 {
   if (myLabelX.contains(value))
index 0a6f202142d46a1b3fff34900a1af81cda4b792a..d7318e24a7d740349f629abec6b128d9fc1102a8 100755 (executable)
@@ -454,6 +454,8 @@ public:
 
   void applyTicks();
 
+  double extent( const QFont &font ) const;
+
 protected:
 
   void drawLabel( QPainter* painter, double value) const;