From 2631108b63aeaa1d7cb31b188614b96c8b95173b Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 1 Sep 2008 14:03:29 +0000 Subject: [PATCH] Fix painting problem for color scale widget --- src/Qtx/QtxColorScale.cxx | 11 +++++++++++ src/Qtx/QtxColorScale.h | 1 + 2 files changed, 12 insertions(+) diff --git a/src/Qtx/QtxColorScale.cxx b/src/Qtx/QtxColorScale.cxx index b7dbf558a..44589c9c1 100755 --- a/src/Qtx/QtxColorScale.cxx +++ b/src/Qtx/QtxColorScale.cxx @@ -698,6 +698,17 @@ void QtxColorScale::hide() QFrame::hide(); } +/*! + \brief Paint widget + \param e paint event +*/ +void QtxColorScale::paintEvent( QPaintEvent* e ) +{ + QPainter p( this ); + drawFrame( &p ); + drawContents( &p ); +} + /*! \brief Draw color scale (reimplemented from QFrame). \param p painter diff --git a/src/Qtx/QtxColorScale.h b/src/Qtx/QtxColorScale.h index 453aeefe6..10014c8d9 100755 --- a/src/Qtx/QtxColorScale.h +++ b/src/Qtx/QtxColorScale.h @@ -123,6 +123,7 @@ public: virtual void hide(); protected: + virtual void paintEvent( QPaintEvent* ); virtual void drawContents( QPainter* ); private: -- 2.39.2