From 48db22a23c542231dff4a26d8cfd0d04b7bd84ec Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 15 Oct 2014 11:24:37 +0400 Subject: [PATCH] 0022773: [CEA 1314] Plot2d : The titles of the devices no visible after validating the settings window --- src/Plot2d/Plot2d_ViewFrame.cxx | 6 ++++++ src/Plot2d/Plot2d_ViewFrame.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 1fd36d09b..ee2f212cd 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -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)) diff --git a/src/Plot2d/Plot2d_ViewFrame.h b/src/Plot2d/Plot2d_ViewFrame.h index 0a6f20214..d7318e24a 100755 --- a/src/Plot2d/Plot2d_ViewFrame.h +++ b/src/Plot2d/Plot2d_ViewFrame.h @@ -454,6 +454,8 @@ public: void applyTicks(); + double extent( const QFont &font ) const; + protected: void drawLabel( QPainter* painter, double value) const; -- 2.39.2