From 68545958a8aeb22d1f9188f196eb8ce816839c80 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 17 Jan 2006 09:11:21 +0000 Subject: [PATCH] Overloaded operator QWidget*() --- src/QDS/QDS_Datum.cxx | 5 +++++ src/QDS/QDS_Datum.h | 2 ++ 2 files changed, 7 insertions(+) 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& ); -- 2.39.2