void QtLineEditFactory::slotRegExpChanged(QtProperty *property, const QRegExp ®Exp) { if (!m_createdEditors.contains(property)) return; QtStringPropertyManager *manager = this->propertyManager(property); if (!manager) return; QListIterator<QLineEdit *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QLineEdit *editor = itEditor.next(); editor->blockSignals(true); const QValidator *oldValidator = editor->validator(); QValidator *newValidator = 0; if (regExp.isValid()) { newValidator = new QRegExpValidator(regExp, editor); } editor->setValidator(newValidator); if (oldValidator) delete oldValidator; editor->blockSignals(false); } }
void FileEditFactory::slotFilterChanged(QtProperty *property, const QString &filter) { if (!theCreatedEditors.contains(property)) return; QList<FileEdit *> editors = theCreatedEditors[property]; QListIterator<FileEdit *> itEditor(editors); while (itEditor.hasNext()) itEditor.next()->setFilter(filter); }
void VariantEditorFactory::slotPropertyChanged(QtProperty *property, const QVariant &value) { if (!mCreatedEditors.contains(property)) return; QList<FileEdit *> editors = mCreatedEditors[property]; QListIterator<FileEdit *> itEditor(editors); while (itEditor.hasNext()) itEditor.next()->setFilePath(value.toString()); }
void QtSpinBoxFactory::slotSingleStepChanged(QtProperty *property, int step) { if (!m_createdEditors.contains(property)) return; QListIterator<QSpinBox *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setSingleStep(step); editor->blockSignals(false); } }
void QtSliderFactory::slotPropertyChanged(QtProperty *property, int value) { if (!m_createdEditors.contains(property)) return; QListIterator<QSlider *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QSlider *editor = itEditor.next(); editor->blockSignals(true); editor->setValue(value); editor->blockSignals(false); } }
void QtLineEditFactory::slotPropertyChanged(QtProperty *property, const QString &value) { if (!m_createdEditors.contains(property)) return; QListIterator<QLineEdit *> itEditor( m_createdEditors[property]); while (itEditor.hasNext()) { QLineEdit *editor = itEditor.next(); if (editor->text() != value) editor->setText(value); } }
void QtDoubleSpinBoxFactory::slotPropertyChanged(QtProperty *property, double value) { QList<QDoubleSpinBox *> editors = m_createdEditors[property]; QListIterator<QDoubleSpinBox *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QDoubleSpinBox *editor = itEditor.next(); if (editor->value() != value) { editor->blockSignals(true); editor->setValue(value); editor->blockSignals(false); } } }
void QtCheckBoxFactory::slotPropertyChanged(QtProperty *property, bool value) { if (!m_createdEditors.contains(property)) return; QListIterator<QtBoolEdit *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QtBoolEdit *editor = itEditor.next(); editor->blockCheckBoxSignals(true); editor->setChecked(value); editor->blockCheckBoxSignals(false); } }
void VariantFactory::slotPropertyAttributeChanged(QtProperty *property, const QString &attribute, const QVariant &value) { if (_createdFileEditors.contains(property)) { if (attribute != QLatin1String("filter")) return; QList<FileEdit *> editors = _createdFileEditors[property]; QListIterator<FileEdit *> itEditor(editors); while (itEditor.hasNext()) itEditor.next()->setFilter(value.toString()); } }
void FileEditorFactory::slotValueChanged(QtProperty *property, const QString &value) { if (!createdEditors.contains(property)) return; PathPropertyManager *manager = propertyManager(property); if (!manager) return; QList<QPointer<GenericPropertyPathEditor> > editors = createdEditors[property]; QListIterator<QPointer<GenericPropertyPathEditor> > itEditor(editors); while (itEditor.hasNext()) { GenericPropertyPathEditor *editor = itEditor.next(); if (editor) editor->setText(value); } }
void ValueSpinBoxFactoryPrivate::slotReadOnlyChanged( QtProperty *property, bool readOnly) { if (!m_createdEditors.contains(property)) return; ValuePropertyManager *manager = q_ptr->propertyManager(property); if (!manager) return; QListIterator<ValueSpinBox *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { ValueSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setReadOnly(readOnly); editor->blockSignals(false); } }
void ValueSpinBoxFactoryPrivate::slotSingleStepChanged(QtProperty *property, double step) { if (!m_createdEditors.contains(property)) return; ValuePropertyManager *manager = q_ptr->propertyManager(property); if (!manager) return; QList<ValueSpinBox *> editors = m_createdEditors[property]; QListIterator<ValueSpinBox *> itEditor(editors); while (itEditor.hasNext()) { ValueSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setSingleStep(step); editor->blockSignals(false); } }
void QtSpinBoxFactory::slotRangeChanged(QtProperty *property, int min, int max) { if (!m_createdEditors.contains(property)) return; QtIntPropertyManager *manager = this->propertyManager(property); if (!manager) return; QListIterator<QSpinBox *> itEditor(m_createdEditors[property]); while (itEditor.hasNext()) { QSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setRange(min, max); editor->setValue(manager->value(property)); editor->blockSignals(false); } }
void ValueSpinBoxFactoryPrivate::slotDecimalsChanged(QtProperty *property, int prec) { if (!m_createdEditors.contains(property)) return; ValuePropertyManager *manager = q_ptr->propertyManager(property); if (!manager) return; QList<ValueSpinBox *> editors = m_createdEditors[property]; QListIterator<ValueSpinBox *> itEditor(editors); while (itEditor.hasNext()) { ValueSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setDecimals(prec); editor->setValueWithUnit(manager->value(property)); editor->blockSignals(false); } }
void QtDoubleSpinBoxFactory::slotDecimalsChanged(QtProperty *property, int prec) { if (!m_createdEditors.contains(property)) return; QtDoublePropertyManager *manager = this->propertyManager(property); if (!manager) return; QList<QDoubleSpinBox *> editors = m_createdEditors[property]; QListIterator<QDoubleSpinBox *> itEditor(editors); while (itEditor.hasNext()) { QDoubleSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setDecimals(prec); editor->setValue(manager->value(property)); editor->blockSignals(false); } }
void ValueSpinBoxFactoryPrivate::slotRangeChanged(QtProperty *property, const tikz::Value & min, const tikz::Value & max) { if (!m_createdEditors.contains(property)) return; ValuePropertyManager *manager = q_ptr->propertyManager(property); if (!manager) return; QList<ValueSpinBox *> editors = m_createdEditors[property]; QListIterator<ValueSpinBox *> itEditor(editors); while (itEditor.hasNext()) { ValueSpinBox *editor = itEditor.next(); editor->blockSignals(true); editor->setRange(min.toPoint(), max.toPoint()); editor->setValueWithUnit(manager->value(property)); editor->blockSignals(false); } }