QtCanpool 3.3.0
载入中...
搜索中...
未找到
QxApp::QxPropertyEditorPrivate类 参考

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 行定义.

构造及析构函数说明

◆ QxPropertyEditorPrivate()

QxApp::QxPropertyEditorPrivate::QxPropertyEditorPrivate ( )
default

成员函数说明

◆ connectField()

void QxApp::QxPropertyEditorPrivate::connectField ( int  index)

Feeds every change of the control at index back into the model.

在文件 qxpropertyeditor.cpp 第 357 行定义.

◆ createField()

QWidget * QxApp::QxPropertyEditorPrivate::createField ( const QxProperty &  property,
QWidget **  input 
)

Creates the control for property; input receives the value holder.

在文件 qxpropertyeditor.cpp 第 235 行定义.

◆ indexOf()

int QxApp::QxPropertyEditorPrivate::indexOf ( const QString &  key) const

在文件 qxpropertyeditor.cpp 第 225 行定义.

◆ init()

void QxApp::QxPropertyEditorPrivate::init ( )

在文件 qxpropertyeditor.cpp 第 211 行定义.

◆ insertRow()

void QxApp::QxPropertyEditorPrivate::insertRow ( QFormLayout *  form,
const QxProperty &  property 
)

Builds the control for property and adds it to form.

在文件 qxpropertyeditor.cpp 第 316 行定义.

◆ readField()

QVariant QxApp::QxPropertyEditorPrivate::readField ( const Row &  row) const

在文件 qxpropertyeditor.cpp 第 409 行定义.

◆ setRowValue()

void QxApp::QxPropertyEditorPrivate::setRowValue ( int  index,
const QVariant &  value 
)

Stores value on the row, updates its control and reports the change.

在文件 qxpropertyeditor.cpp 第 493 行定义.

◆ updateModified()

void QxApp::QxPropertyEditorPrivate::updateModified ( )

在文件 qxpropertyeditor.cpp 第 515 行定义.

◆ writeField()

void QxApp::QxPropertyEditorPrivate::writeField ( const Row &  row,
const QVariant &  value 
)

在文件 qxpropertyeditor.cpp 第 437 行定义.

类成员变量说明

◆ m_form

QFormLayout* QxApp::QxPropertyEditorPrivate::m_form = 0

The form the next property is added to, i.e.

the last group opened.

在文件 qxpropertyeditor_p.h 第 61 行定义.

◆ m_initial

QHash<QString, QVariant> QxApp::QxPropertyEditorPrivate::m_initial

在文件 qxpropertyeditor_p.h 第 63 行定义.

◆ m_layout

QVBoxLayout* QxApp::QxPropertyEditorPrivate::m_layout = 0

在文件 qxpropertyeditor_p.h 第 59 行定义.

◆ m_modified

bool QxApp::QxPropertyEditorPrivate::m_modified = false

在文件 qxpropertyeditor_p.h 第 64 行定义.

◆ m_rows

QList<Row> QxApp::QxPropertyEditorPrivate::m_rows

在文件 qxpropertyeditor_p.h 第 62 行定义.

◆ m_updating

bool QxApp::QxPropertyEditorPrivate::m_updating = false

True while the controls are being filled, so their signals are ignored.

在文件 qxpropertyeditor_p.h 第 66 行定义.


该类的文档由以下文件生成: