#include <qpropertyeditor_items_p.h>
Inheritance diagram for qdesigner_internal::LongLongProperty:


Definition at line 288 of file qpropertyeditor_items_p.h.
Public Member Functions | |
| LongLongProperty (qlonglong value, const QString &name) | |
| void | setValue (const QVariant &value) |
| QString | toString () const |
| QWidget * | createEditor (QWidget *parent, const QObject *target, const char *receiver) const |
| void | updateEditorContents (QWidget *editor) |
| void | updateValue (QWidget *editor) |
Definition at line 1591 of file qpropertyeditor_items.cpp.
01592 : AbstractProperty<qlonglong>(value, name) 01593 { 01594 }
| void LongLongProperty::setValue | ( | const QVariant & | value | ) | [virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 1596 of file qpropertyeditor_items.cpp.
References qdesigner_internal::AbstractProperty< T >::m_value, QVariant::toLongLong(), and qdesigner_internal::AbstractProperty< T >::value().
01597 { 01598 m_value = value.toLongLong(); 01599 }
Here is the call graph for this function:

| QString LongLongProperty::toString | ( | ) | const [virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 1601 of file qpropertyeditor_items.cpp.
References qdesigner_internal::AbstractProperty< T >::m_value, and QString::number().
01602 { 01603 return QString::number(m_value); 01604 }
Here is the call graph for this function:

| QWidget * LongLongProperty::createEditor | ( | QWidget * | parent, | |
| const QObject * | target, | |||
| const char * | receiver | |||
| ) | const [virtual] |
Implements qdesigner_internal::IProperty.
Definition at line 1606 of file qpropertyeditor_items.cpp.
References QObject::connect(), qdesigner_internal::IProperty::parent(), QLineEdit::setFrame(), QLineEdit::setValidator(), and SIGNAL.
01607 { 01608 QLineEdit *lineEdit = new QLineEdit(parent); 01609 lineEdit->setFrame(0); 01610 lineEdit->setValidator(new QLongLongValidator(lineEdit)); 01611 01612 QObject::connect(lineEdit, SIGNAL(textChanged(QString)), target, receiver); 01613 return lineEdit; 01614 }
Here is the call graph for this function:

| void LongLongProperty::updateEditorContents | ( | QWidget * | editor | ) | [virtual] |
Reimplemented from qdesigner_internal::IProperty.
Definition at line 1616 of file qpropertyeditor_items.cpp.
References qdesigner_internal::AbstractProperty< T >::m_value, and QString::number().
01617 { 01618 if (QLineEdit *lineEdit = qobject_cast<QLineEdit*>(editor)) { 01619 qlonglong v = lineEdit->text().toLongLong(); 01620 if (v != m_value) 01621 lineEdit->setText(QString::number(m_value)); 01622 } 01623 }
Here is the call graph for this function:

| void LongLongProperty::updateValue | ( | QWidget * | editor | ) | [virtual] |
Reimplemented from qdesigner_internal::IProperty.
Definition at line 1625 of file qpropertyeditor_items.cpp.
References qdesigner_internal::AbstractProperty< T >::m_value, and qdesigner_internal::IProperty::setChanged().
01626 { 01627 if (QLineEdit *lineEdit = qobject_cast<QLineEdit*>(editor)) { 01628 qlonglong newValue = lineEdit->text().toLongLong(); 01629 01630 if (newValue != m_value) { 01631 m_value = newValue; 01632 setChanged(true); 01633 } 01634 01635 } 01636 }
Here is the call graph for this function:

1.5.1