From: stv Date: Tue, 17 Jan 2006 09:11:21 +0000 (+0000) Subject: Overloaded operator QWidget*() X-Git-Tag: T_Before_Join_BR-D5-38-2003~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68545958a8aeb22d1f9188f196eb8ce816839c80;p=modules%2Fgui.git Overloaded operator QWidget*() --- diff --git a/src/QDS/QDS_Datum.cxx b/src/QDS/QDS_Datum.cxx index 860949d63..b24581955 100644 --- a/src/QDS/QDS_Datum.cxx +++ b/src/QDS/QDS_Datum.cxx @@ -156,6 +156,11 @@ QDS_Datum::~QDS_Datum() */ } +QDS_Datum::operator QWidget*() const +{ + return widget( Control ); +} + QString QDS_Datum::id() const { initDatum(); diff --git a/src/QDS/QDS_Datum.h b/src/QDS/QDS_Datum.h index be0247441..a3a056d7d 100644 --- a/src/QDS/QDS_Datum.h +++ b/src/QDS/QDS_Datum.h @@ -87,6 +87,8 @@ public: virtual bool eventFilter( QObject*, QEvent* ); + operator QWidget*() const; + signals: void paramChanged(); void paramChanged( QString& );