]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Overloaded operator QWidget*()
authorstv <stv@opencascade.com>
Tue, 17 Jan 2006 09:11:21 +0000 (09:11 +0000)
committerstv <stv@opencascade.com>
Tue, 17 Jan 2006 09:11:21 +0000 (09:11 +0000)
src/QDS/QDS_Datum.cxx
src/QDS/QDS_Datum.h

index 860949d63119c50545a0df15017271da2f4a94a8..b2458195578dfe9882f94340e268fa8987981e27 100644 (file)
@@ -156,6 +156,11 @@ QDS_Datum::~QDS_Datum()
 */
 }
 
+QDS_Datum::operator QWidget*() const
+{
+  return widget( Control );
+}
+
 QString QDS_Datum::id() const
 {
   initDatum();
index be0247441c95dee078e45be9e440c9c48bcfbb7a..a3a056d7dd2238188288e0b4978a0ec1cd5a6e36 100644 (file)
@@ -87,6 +87,8 @@ public:
 
   virtual bool              eventFilter( QObject*, QEvent* );
 
+  operator QWidget*() const;
+
 signals:
   void                      paramChanged();
   void                      paramChanged( QString& );