|
QtCanpool 3.3.0
|
The state behind QxPropertyEditor: one row per property, the baseline the values are compared against, and the flag that keeps the controls from feeding their own programmatic update back into the model. 更多...
#include <qxapp/qxpropertyeditor_p.h>
类 | |
| struct | Row |
Public 成员函数 | |
| QxPropertyEditorPrivate () | |
| void | init () |
| int | indexOf (const QString &key) const |
| void | insertRow (QFormLayout *form, const QxProperty &property) |
| Builds the control for property and adds it to form. | |
| QWidget * | createField (const QxProperty &property, QWidget **input) |
| Creates the control for property; input receives the value holder. | |
| void | connectField (int index) |
| Feeds every change of the control at index back into the model. | |
| QVariant | readField (const Row &row) const |
| void | writeField (const Row &row, const QVariant &value) |
| void | setRowValue (int index, const QVariant &value) |
| Stores value on the row, updates its control and reports the change. | |
| void | updateModified () |
Public 属性 | |
| QVBoxLayout * | m_layout = 0 |
| QFormLayout * | m_form = 0 |
| The form the next property is added to, i.e. | |
| QList< Row > | m_rows |
| QHash< QString, QVariant > | m_initial |
| bool | m_modified = false |
| bool | m_updating = false |
| True while the controls are being filled, so their signals are ignored. | |
The state behind QxPropertyEditor: one row per property, the baseline the values are compared against, and the flag that keeps the controls from feeding their own programmatic update back into the model.
A row keeps two widget pointers because a couple of types need a container: the field is what the form lays out, and the input is the control that really holds the value - the same widget for every type except Path, whose field is a line edit next to a browse button.
在文件 qxpropertyeditor_p.h 第 32 行定义.
|
default |
| void QxApp::QxPropertyEditorPrivate::connectField | ( | int | index | ) |
Feeds every change of the control at index back into the model.
在文件 qxpropertyeditor.cpp 第 357 行定义.
| QWidget * QxApp::QxPropertyEditorPrivate::createField | ( | const QxProperty & | property, |
| QWidget ** | input | ||
| ) |
Creates the control for property; input receives the value holder.
在文件 qxpropertyeditor.cpp 第 235 行定义.
| int QxApp::QxPropertyEditorPrivate::indexOf | ( | const QString & | key | ) | const |
在文件 qxpropertyeditor.cpp 第 225 行定义.
| void QxApp::QxPropertyEditorPrivate::init | ( | ) |
在文件 qxpropertyeditor.cpp 第 211 行定义.
| void QxApp::QxPropertyEditorPrivate::insertRow | ( | QFormLayout * | form, |
| const QxProperty & | property | ||
| ) |
Builds the control for property and adds it to form.
在文件 qxpropertyeditor.cpp 第 316 行定义.
| QVariant QxApp::QxPropertyEditorPrivate::readField | ( | const Row & | row | ) | const |
在文件 qxpropertyeditor.cpp 第 409 行定义.
| void QxApp::QxPropertyEditorPrivate::setRowValue | ( | int | index, |
| const QVariant & | value | ||
| ) |
Stores value on the row, updates its control and reports the change.
在文件 qxpropertyeditor.cpp 第 493 行定义.
| void QxApp::QxPropertyEditorPrivate::updateModified | ( | ) |
在文件 qxpropertyeditor.cpp 第 515 行定义.
| void QxApp::QxPropertyEditorPrivate::writeField | ( | const Row & | row, |
| const QVariant & | value | ||
| ) |
在文件 qxpropertyeditor.cpp 第 437 行定义.
| QFormLayout* QxApp::QxPropertyEditorPrivate::m_form = 0 |
The form the next property is added to, i.e.
the last group opened.
在文件 qxpropertyeditor_p.h 第 61 行定义.
| QHash<QString, QVariant> QxApp::QxPropertyEditorPrivate::m_initial |
在文件 qxpropertyeditor_p.h 第 63 行定义.
| QVBoxLayout* QxApp::QxPropertyEditorPrivate::m_layout = 0 |
在文件 qxpropertyeditor_p.h 第 59 行定义.
| bool QxApp::QxPropertyEditorPrivate::m_modified = false |
在文件 qxpropertyeditor_p.h 第 64 行定义.
| QList<Row> QxApp::QxPropertyEditorPrivate::m_rows |
在文件 qxpropertyeditor_p.h 第 62 行定义.
| bool QxApp::QxPropertyEditorPrivate::m_updating = false |
True while the controls are being filled, so their signals are ignored.
在文件 qxpropertyeditor_p.h 第 66 行定义.