]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merging from BR_QT4_Dev
authorouv <ouv@opencascade.com>
Mon, 1 Sep 2008 14:15:35 +0000 (14:15 +0000)
committerouv <ouv@opencascade.com>
Mon, 1 Sep 2008 14:15:35 +0000 (14:15 +0000)
src/Qtx/QtxColorScale.cxx
src/Qtx/QtxColorScale.h

index b7dbf558a743ce56542765eb7cf9dda112c752c0..44589c9c1e75b35ecbdf4ec1ee046c39f901f7c2 100755 (executable)
@@ -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
index 453aeefe66b4e69c54b3af73022ea0422bd0f0f5..10014c8d9181861f722e9c304105f5b253391820 100755 (executable)
@@ -123,6 +123,7 @@ public:
   virtual void          hide();
 
 protected:
+  virtual void          paintEvent( QPaintEvent* );
   virtual void          drawContents( QPainter* );
 
 private: