]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Method selectAll()
authorstv <stv@opencascade.com>
Thu, 31 Aug 2006 06:05:38 +0000 (06:05 +0000)
committerstv <stv@opencascade.com>
Thu, 31 Aug 2006 06:05:38 +0000 (06:05 +0000)
src/QDS/QDS_LineEdit.cxx
src/QDS/QDS_LineEdit.h

index 2ed577d12f461759c7fa73c0a188a256a5b0bd76..803d9397f118cd04e77ca2f8b31855d5224f1b8f 100644 (file)
@@ -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.
 */
index 3362e74378885c4ce20ec028faa2b5034e5fd684..e67b86e2bfebea643a3f4781bc5594f7c995a2b2 100644 (file)
@@ -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: