Back to index

salome-gui  6.5.0
Public Member Functions | Private Attributes
QDS_LineEdit::Editor Class Reference

Improved version of QLineEdit. More...

List of all members.

Public Member Functions

 Editor (QWidget *parent=0)
virtual ~Editor ()
void setNumber (const int num)
virtual QSize minimumSizeHint () const
virtual QSize sizeHint () const

Private Attributes

int myNumber

Detailed Description

Improved version of QLineEdit.

Definition at line 34 of file QDS_LineEdit.cxx.


Constructor & Destructor Documentation

QDS_LineEdit::Editor::Editor ( QWidget *  parent = 0) [inline]

Definition at line 37 of file QDS_LineEdit.cxx.

: QLineEdit( parent ), myNumber( 2 ) {};
virtual QDS_LineEdit::Editor::~Editor ( ) [inline, virtual]

Definition at line 38 of file QDS_LineEdit.cxx.

{};

Member Function Documentation

virtual QSize QDS_LineEdit::Editor::minimumSizeHint ( ) const [inline, virtual]

Definition at line 42 of file QDS_LineEdit.cxx.

  {
    return QLineEdit::minimumSizeHint().
      expandedTo( QSize( fontMetrics().width( "0" ) * myNumber, 0 ) );
  }

Here is the caller graph for this function:

void QDS_LineEdit::Editor::setNumber ( const int  num) [inline]

Definition at line 40 of file QDS_LineEdit.cxx.

{ myNumber = num; };
virtual QSize QDS_LineEdit::Editor::sizeHint ( ) const [inline, virtual]

Definition at line 48 of file QDS_LineEdit.cxx.

  {
    return minimumSizeHint();
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 54 of file QDS_LineEdit.cxx.


The documentation for this class was generated from the following file: