#include <Iguana/Studio/interface/IgQtLineEdit.h>
Public Slots | |
virtual void | changed (const QString &text) |
virtual void | changed (void) |
virtual void | setChanged (bool option=true) |
Signals | |
void | valueChanged (const QString &text) |
Public Member Functions | |
IgQtLineEdit (const QString &contents, QWidget *parent, const char *name=0) | |
IgQtLineEdit (QWidget *parent, const char *name=0) | |
Protected Member Functions | |
void | focusOutEvent (QFocusEvent *event) |
Private Attributes | |
bool | m_textChanged |
Definition at line 16 of file IgQtLineEdit.h.
IgQtLineEdit::IgQtLineEdit | ( | QWidget * | parent, | |
const char * | name = 0 | |||
) |
Definition at line 15 of file IgQtLineEdit.cc.
References changed(), and HLT_VtxMuL3::connect.
00016 : QLineEdit (parent, name), 00017 m_textChanged (false) 00018 { 00019 connect(this, SIGNAL(textChanged(const QString&)), 00020 this, SLOT(changed(const QString&))); 00021 00022 connect(this, SIGNAL(returnPressed()), 00023 this, SLOT(changed())); 00024 }
IgQtLineEdit::IgQtLineEdit | ( | const QString & | contents, | |
QWidget * | parent, | |||
const char * | name = 0 | |||
) |
Definition at line 26 of file IgQtLineEdit.cc.
References changed(), and HLT_VtxMuL3::connect.
00029 : QLineEdit (contents, parent, name), 00030 m_textChanged (false) 00031 { 00032 connect(this, SIGNAL(textChanged(const QString&)), 00033 this, SLOT(changed(const QString&))); 00034 connect(this, SIGNAL(returnPressed()), 00035 this, SLOT(changed())); 00036 }
void IgQtLineEdit::changed | ( | const QString & | text | ) | [virtual, slot] |
Definition at line 38 of file IgQtLineEdit.cc.
References m_textChanged.
00039 { m_textChanged = true; }
Definition at line 41 of file IgQtLineEdit.cc.
References m_textChanged, and valueChanged().
Referenced by focusOutEvent(), and IgQtLineEdit().
00042 { 00043 if (m_textChanged) 00044 { 00045 emit valueChanged (text ()); 00046 m_textChanged = false; 00047 } 00048 }
void IgQtLineEdit::focusOutEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 56 of file IgQtLineEdit.cc.
References m_textChanged.
Referenced by IgQtRangeControlImp< T >::setValue(), IgQtRangeControlFloat::setValue(), IgQtRangeMControlFloat::updateTextValue(), and IgQtRangeMControlImp< T >::updateTextValue().
00057 { m_textChanged = value; }
bool IgQtLineEdit::m_textChanged [private] |