From: stv Date: Thu, 31 Aug 2006 06:05:38 +0000 (+0000) Subject: Method selectAll() X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c5c0a2c4e994cdd343ac8cfe7b90ae0d8401d3dd;p=modules%2Fgui.git Method selectAll() --- diff --git a/src/QDS/QDS_LineEdit.cxx b/src/QDS/QDS_LineEdit.cxx index 2ed577d12..803d9397f 100644 --- a/src/QDS/QDS_LineEdit.cxx +++ b/src/QDS/QDS_LineEdit.cxx @@ -116,6 +116,15 @@ void QDS_LineEdit::unitSystemChanged( const QString& system ) ((Editor*)le)->setNumber( num ); } +/*! + Select all text in the editor. +*/ +void QDS_LineEdit::selectAll() +{ + if ( lineEdit() ) + lineEdit()->selectAll(); +} + /*! Set the aligment of line edit. Reimplemented from QDS_Datum. */ diff --git a/src/QDS/QDS_LineEdit.h b/src/QDS/QDS_LineEdit.h index 3362e7437..e67b86e2b 100644 --- a/src/QDS/QDS_LineEdit.h +++ b/src/QDS/QDS_LineEdit.h @@ -34,6 +34,7 @@ public: QDS_LineEdit( const QString&, QWidget* = 0, const int = All, const QString& = QString::null ); virtual ~QDS_LineEdit(); + virtual void selectAll(); virtual void setAlignment( const int, const int = Label ); signals: