Back to index

salome-smesh  6.5.0
Public Member Functions | Static Public Member Functions
SMESHGUI_FilterTable::DoubleSpinItem Class Reference

List of all members.

Public Member Functions

 DoubleSpinItem (const double theValue)
double value () const
void setValue (const double theValue)
int precision () const
void setPrecision (const int thePrecision)
void clear ()

Static Public Member Functions

static int Type ()

Detailed Description

Definition at line 527 of file SMESHGUI_FilterDlg.cxx.


Constructor & Destructor Documentation

Definition at line 548 of file SMESHGUI_FilterDlg.cxx.

 : QTableWidgetItem( Type() )
{
  setValue( theValue );
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 579 of file SMESHGUI_FilterDlg.cxx.

{
  setText( "" );
}

Here is the caller graph for this function:

Definition at line 567 of file SMESHGUI_FilterDlg.cxx.

{
  bool ok = false;
  int precision = data( Qt::UserRole + 1 ).toInt( &ok );
  return ok ? precision : 0; 
}
void SMESHGUI_FilterTable::DoubleSpinItem::setPrecision ( const int  thePrecision)

Definition at line 574 of file SMESHGUI_FilterDlg.cxx.

{
  setData( Qt::UserRole + 1, thePrecision );
}
void SMESHGUI_FilterTable::DoubleSpinItem::setValue ( const double  theValue)

Definition at line 561 of file SMESHGUI_FilterDlg.cxx.

{
  setData( Qt::UserRole, theValue );
  setText( QString::number( theValue ) ); 
}

Here is the caller graph for this function:

Definition at line 543 of file SMESHGUI_FilterDlg.cxx.

{
  return QTableWidgetItem::UserType + 4;
}

Definition at line 554 of file SMESHGUI_FilterDlg.cxx.

{
  bool ok = false;
  double value = data( Qt::UserRole ).toDouble( &ok );
  return ok ? value : 0; 
}

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