942 d_ptr->m_typeToAttributeToAttributeType[QVariant::Double][d_ptr->m_singleStepAttribute] = |
942 d_ptr->m_typeToAttributeToAttributeType[QVariant::Double][d_ptr->m_singleStepAttribute] = |
943 QVariant::Double; |
943 QVariant::Double; |
944 d_ptr->m_typeToAttributeToAttributeType[QVariant::Double][d_ptr->m_decimalsAttribute] = |
944 d_ptr->m_typeToAttributeToAttributeType[QVariant::Double][d_ptr->m_decimalsAttribute] = |
945 QVariant::Int; |
945 QVariant::Int; |
946 d_ptr->m_typeToValueType[QVariant::Double] = QVariant::Double; |
946 d_ptr->m_typeToValueType[QVariant::Double] = QVariant::Double; |
947 connect(doublePropertyManager, SIGNAL(valueChanged(QtProperty *, double)), |
947 connect(doublePropertyManager, SIGNAL(valueChanged(QtProperty*,double)), |
948 this, SLOT(slotValueChanged(QtProperty *, double))); |
948 this, SLOT(slotValueChanged(QtProperty*,double))); |
949 connect(doublePropertyManager, SIGNAL(rangeChanged(QtProperty *, double, double)), |
949 connect(doublePropertyManager, SIGNAL(rangeChanged(QtProperty*,double,double)), |
950 this, SLOT(slotRangeChanged(QtProperty *, double, double))); |
950 this, SLOT(slotRangeChanged(QtProperty*,double,double))); |
951 connect(doublePropertyManager, SIGNAL(singleStepChanged(QtProperty *, double)), |
951 connect(doublePropertyManager, SIGNAL(singleStepChanged(QtProperty*,double)), |
952 this, SLOT(slotSingleStepChanged(QtProperty *, double))); |
952 this, SLOT(slotSingleStepChanged(QtProperty*,double))); |
953 connect(doublePropertyManager, SIGNAL(decimalsChanged(QtProperty *, int)), |
953 connect(doublePropertyManager, SIGNAL(decimalsChanged(QtProperty*,int)), |
954 this, SLOT(slotDecimalsChanged(QtProperty *, int))); |
954 this, SLOT(slotDecimalsChanged(QtProperty*,int))); |
955 // BoolPropertyManager |
955 // BoolPropertyManager |
956 QtBoolPropertyManager *boolPropertyManager = new QtBoolPropertyManager(this); |
956 QtBoolPropertyManager *boolPropertyManager = new QtBoolPropertyManager(this); |
957 d_ptr->m_typeToPropertyManager[QVariant::Bool] = boolPropertyManager; |
957 d_ptr->m_typeToPropertyManager[QVariant::Bool] = boolPropertyManager; |
958 d_ptr->m_typeToValueType[QVariant::Bool] = QVariant::Bool; |
958 d_ptr->m_typeToValueType[QVariant::Bool] = QVariant::Bool; |
959 connect(boolPropertyManager, SIGNAL(valueChanged(QtProperty *, bool)), |
959 connect(boolPropertyManager, SIGNAL(valueChanged(QtProperty*,bool)), |
960 this, SLOT(slotValueChanged(QtProperty *, bool))); |
960 this, SLOT(slotValueChanged(QtProperty*,bool))); |
961 // StringPropertyManager |
961 // StringPropertyManager |
962 QtStringPropertyManager *stringPropertyManager = new QtStringPropertyManager(this); |
962 QtStringPropertyManager *stringPropertyManager = new QtStringPropertyManager(this); |
963 d_ptr->m_typeToPropertyManager[QVariant::String] = stringPropertyManager; |
963 d_ptr->m_typeToPropertyManager[QVariant::String] = stringPropertyManager; |
964 d_ptr->m_typeToValueType[QVariant::String] = QVariant::String; |
964 d_ptr->m_typeToValueType[QVariant::String] = QVariant::String; |
965 d_ptr->m_typeToAttributeToAttributeType[QVariant::String][d_ptr->m_regExpAttribute] = |
965 d_ptr->m_typeToAttributeToAttributeType[QVariant::String][d_ptr->m_regExpAttribute] = |
966 QVariant::RegExp; |
966 QVariant::RegExp; |
967 connect(stringPropertyManager, SIGNAL(valueChanged(QtProperty *, const QString &)), |
967 connect(stringPropertyManager, SIGNAL(valueChanged(QtProperty*,QString)), |
968 this, SLOT(slotValueChanged(QtProperty *, const QString &))); |
968 this, SLOT(slotValueChanged(QtProperty*,QString))); |
969 connect(stringPropertyManager, SIGNAL(regExpChanged(QtProperty *, const QRegExp &)), |
969 connect(stringPropertyManager, SIGNAL(regExpChanged(QtProperty*,QRegExp)), |
970 this, SLOT(slotRegExpChanged(QtProperty *, const QRegExp &))); |
970 this, SLOT(slotRegExpChanged(QtProperty*,QRegExp))); |
971 // DatePropertyManager |
971 // DatePropertyManager |
972 QtDatePropertyManager *datePropertyManager = new QtDatePropertyManager(this); |
972 QtDatePropertyManager *datePropertyManager = new QtDatePropertyManager(this); |
973 d_ptr->m_typeToPropertyManager[QVariant::Date] = datePropertyManager; |
973 d_ptr->m_typeToPropertyManager[QVariant::Date] = datePropertyManager; |
974 d_ptr->m_typeToValueType[QVariant::Date] = QVariant::Date; |
974 d_ptr->m_typeToValueType[QVariant::Date] = QVariant::Date; |
975 d_ptr->m_typeToAttributeToAttributeType[QVariant::Date][d_ptr->m_minimumAttribute] = |
975 d_ptr->m_typeToAttributeToAttributeType[QVariant::Date][d_ptr->m_minimumAttribute] = |
976 QVariant::Date; |
976 QVariant::Date; |
977 d_ptr->m_typeToAttributeToAttributeType[QVariant::Date][d_ptr->m_maximumAttribute] = |
977 d_ptr->m_typeToAttributeToAttributeType[QVariant::Date][d_ptr->m_maximumAttribute] = |
978 QVariant::Date; |
978 QVariant::Date; |
979 connect(datePropertyManager, SIGNAL(valueChanged(QtProperty *, const QDate &)), |
979 connect(datePropertyManager, SIGNAL(valueChanged(QtProperty*,QDate)), |
980 this, SLOT(slotValueChanged(QtProperty *, const QDate &))); |
980 this, SLOT(slotValueChanged(QtProperty*,QDate))); |
981 connect(datePropertyManager, SIGNAL(rangeChanged(QtProperty *, const QDate &, const QDate &)), |
981 connect(datePropertyManager, SIGNAL(rangeChanged(QtProperty*,QDate,QDate)), |
982 this, SLOT(slotRangeChanged(QtProperty *, const QDate &, const QDate &))); |
982 this, SLOT(slotRangeChanged(QtProperty*,QDate,QDate))); |
983 // TimePropertyManager |
983 // TimePropertyManager |
984 QtTimePropertyManager *timePropertyManager = new QtTimePropertyManager(this); |
984 QtTimePropertyManager *timePropertyManager = new QtTimePropertyManager(this); |
985 d_ptr->m_typeToPropertyManager[QVariant::Time] = timePropertyManager; |
985 d_ptr->m_typeToPropertyManager[QVariant::Time] = timePropertyManager; |
986 d_ptr->m_typeToValueType[QVariant::Time] = QVariant::Time; |
986 d_ptr->m_typeToValueType[QVariant::Time] = QVariant::Time; |
987 connect(timePropertyManager, SIGNAL(valueChanged(QtProperty *, const QTime &)), |
987 connect(timePropertyManager, SIGNAL(valueChanged(QtProperty*,QTime)), |
988 this, SLOT(slotValueChanged(QtProperty *, const QTime &))); |
988 this, SLOT(slotValueChanged(QtProperty*,QTime))); |
989 // DateTimePropertyManager |
989 // DateTimePropertyManager |
990 QtDateTimePropertyManager *dateTimePropertyManager = new QtDateTimePropertyManager(this); |
990 QtDateTimePropertyManager *dateTimePropertyManager = new QtDateTimePropertyManager(this); |
991 d_ptr->m_typeToPropertyManager[QVariant::DateTime] = dateTimePropertyManager; |
991 d_ptr->m_typeToPropertyManager[QVariant::DateTime] = dateTimePropertyManager; |
992 d_ptr->m_typeToValueType[QVariant::DateTime] = QVariant::DateTime; |
992 d_ptr->m_typeToValueType[QVariant::DateTime] = QVariant::DateTime; |
993 connect(dateTimePropertyManager, SIGNAL(valueChanged(QtProperty *, const QDateTime &)), |
993 connect(dateTimePropertyManager, SIGNAL(valueChanged(QtProperty*,QDateTime)), |
994 this, SLOT(slotValueChanged(QtProperty *, const QDateTime &))); |
994 this, SLOT(slotValueChanged(QtProperty*,QDateTime))); |
995 // KeySequencePropertyManager |
995 // KeySequencePropertyManager |
996 QtKeySequencePropertyManager *keySequencePropertyManager = new QtKeySequencePropertyManager(this); |
996 QtKeySequencePropertyManager *keySequencePropertyManager = new QtKeySequencePropertyManager(this); |
997 d_ptr->m_typeToPropertyManager[QVariant::KeySequence] = keySequencePropertyManager; |
997 d_ptr->m_typeToPropertyManager[QVariant::KeySequence] = keySequencePropertyManager; |
998 d_ptr->m_typeToValueType[QVariant::KeySequence] = QVariant::KeySequence; |
998 d_ptr->m_typeToValueType[QVariant::KeySequence] = QVariant::KeySequence; |
999 connect(keySequencePropertyManager, SIGNAL(valueChanged(QtProperty *, const QKeySequence &)), |
999 connect(keySequencePropertyManager, SIGNAL(valueChanged(QtProperty*,QKeySequence)), |
1000 this, SLOT(slotValueChanged(QtProperty *, const QKeySequence &))); |
1000 this, SLOT(slotValueChanged(QtProperty*,QKeySequence))); |
1001 // CharPropertyManager |
1001 // CharPropertyManager |
1002 QtCharPropertyManager *charPropertyManager = new QtCharPropertyManager(this); |
1002 QtCharPropertyManager *charPropertyManager = new QtCharPropertyManager(this); |
1003 d_ptr->m_typeToPropertyManager[QVariant::Char] = charPropertyManager; |
1003 d_ptr->m_typeToPropertyManager[QVariant::Char] = charPropertyManager; |
1004 d_ptr->m_typeToValueType[QVariant::Char] = QVariant::Char; |
1004 d_ptr->m_typeToValueType[QVariant::Char] = QVariant::Char; |
1005 connect(charPropertyManager, SIGNAL(valueChanged(QtProperty *, const QChar &)), |
1005 connect(charPropertyManager, SIGNAL(valueChanged(QtProperty*,QChar)), |
1006 this, SLOT(slotValueChanged(QtProperty *, const QChar &))); |
1006 this, SLOT(slotValueChanged(QtProperty*,QChar))); |
1007 // LocalePropertyManager |
1007 // LocalePropertyManager |
1008 QtLocalePropertyManager *localePropertyManager = new QtLocalePropertyManager(this); |
1008 QtLocalePropertyManager *localePropertyManager = new QtLocalePropertyManager(this); |
1009 d_ptr->m_typeToPropertyManager[QVariant::Locale] = localePropertyManager; |
1009 d_ptr->m_typeToPropertyManager[QVariant::Locale] = localePropertyManager; |
1010 d_ptr->m_typeToValueType[QVariant::Locale] = QVariant::Locale; |
1010 d_ptr->m_typeToValueType[QVariant::Locale] = QVariant::Locale; |
1011 connect(localePropertyManager, SIGNAL(valueChanged(QtProperty *, const QLocale &)), |
1011 connect(localePropertyManager, SIGNAL(valueChanged(QtProperty*,QLocale)), |
1012 this, SLOT(slotValueChanged(QtProperty *, const QLocale &))); |
1012 this, SLOT(slotValueChanged(QtProperty*,QLocale))); |
1013 connect(localePropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1013 connect(localePropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1014 this, SLOT(slotValueChanged(QtProperty *, int))); |
1014 this, SLOT(slotValueChanged(QtProperty*,int))); |
1015 connect(localePropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1015 connect(localePropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1016 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1016 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1017 connect(localePropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1017 connect(localePropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1018 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1018 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1019 // PointPropertyManager |
1019 // PointPropertyManager |
1020 QtPointPropertyManager *pointPropertyManager = new QtPointPropertyManager(this); |
1020 QtPointPropertyManager *pointPropertyManager = new QtPointPropertyManager(this); |
1021 d_ptr->m_typeToPropertyManager[QVariant::Point] = pointPropertyManager; |
1021 d_ptr->m_typeToPropertyManager[QVariant::Point] = pointPropertyManager; |
1022 d_ptr->m_typeToValueType[QVariant::Point] = QVariant::Point; |
1022 d_ptr->m_typeToValueType[QVariant::Point] = QVariant::Point; |
1023 connect(pointPropertyManager, SIGNAL(valueChanged(QtProperty *, const QPoint &)), |
1023 connect(pointPropertyManager, SIGNAL(valueChanged(QtProperty*,QPoint)), |
1024 this, SLOT(slotValueChanged(QtProperty *, const QPoint &))); |
1024 this, SLOT(slotValueChanged(QtProperty*,QPoint))); |
1025 connect(pointPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1025 connect(pointPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1026 this, SLOT(slotValueChanged(QtProperty *, int))); |
1026 this, SLOT(slotValueChanged(QtProperty*,int))); |
1027 connect(pointPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1027 connect(pointPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1028 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1028 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1029 connect(pointPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1029 connect(pointPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1030 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1030 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1031 // PointFPropertyManager |
1031 // PointFPropertyManager |
1032 QtPointFPropertyManager *pointFPropertyManager = new QtPointFPropertyManager(this); |
1032 QtPointFPropertyManager *pointFPropertyManager = new QtPointFPropertyManager(this); |
1033 d_ptr->m_typeToPropertyManager[QVariant::PointF] = pointFPropertyManager; |
1033 d_ptr->m_typeToPropertyManager[QVariant::PointF] = pointFPropertyManager; |
1034 d_ptr->m_typeToValueType[QVariant::PointF] = QVariant::PointF; |
1034 d_ptr->m_typeToValueType[QVariant::PointF] = QVariant::PointF; |
1035 d_ptr->m_typeToAttributeToAttributeType[QVariant::PointF][d_ptr->m_decimalsAttribute] = |
1035 d_ptr->m_typeToAttributeToAttributeType[QVariant::PointF][d_ptr->m_decimalsAttribute] = |
1036 QVariant::Int; |
1036 QVariant::Int; |
1037 connect(pointFPropertyManager, SIGNAL(valueChanged(QtProperty *, const QPointF &)), |
1037 connect(pointFPropertyManager, SIGNAL(valueChanged(QtProperty*,QPointF)), |
1038 this, SLOT(slotValueChanged(QtProperty *, const QPointF &))); |
1038 this, SLOT(slotValueChanged(QtProperty*,QPointF))); |
1039 connect(pointFPropertyManager, SIGNAL(decimalsChanged(QtProperty *, int)), |
1039 connect(pointFPropertyManager, SIGNAL(decimalsChanged(QtProperty*,int)), |
1040 this, SLOT(slotDecimalsChanged(QtProperty *, int))); |
1040 this, SLOT(slotDecimalsChanged(QtProperty*,int))); |
1041 connect(pointFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty *, double)), |
1041 connect(pointFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty*,double)), |
1042 this, SLOT(slotValueChanged(QtProperty *, double))); |
1042 this, SLOT(slotValueChanged(QtProperty*,double))); |
1043 connect(pointFPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1043 connect(pointFPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1044 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1044 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1045 connect(pointFPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1045 connect(pointFPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1046 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1046 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1047 // SizePropertyManager |
1047 // SizePropertyManager |
1048 QtSizePropertyManager *sizePropertyManager = new QtSizePropertyManager(this); |
1048 QtSizePropertyManager *sizePropertyManager = new QtSizePropertyManager(this); |
1049 d_ptr->m_typeToPropertyManager[QVariant::Size] = sizePropertyManager; |
1049 d_ptr->m_typeToPropertyManager[QVariant::Size] = sizePropertyManager; |
1050 d_ptr->m_typeToValueType[QVariant::Size] = QVariant::Size; |
1050 d_ptr->m_typeToValueType[QVariant::Size] = QVariant::Size; |
1051 d_ptr->m_typeToAttributeToAttributeType[QVariant::Size][d_ptr->m_minimumAttribute] = |
1051 d_ptr->m_typeToAttributeToAttributeType[QVariant::Size][d_ptr->m_minimumAttribute] = |
1052 QVariant::Size; |
1052 QVariant::Size; |
1053 d_ptr->m_typeToAttributeToAttributeType[QVariant::Size][d_ptr->m_maximumAttribute] = |
1053 d_ptr->m_typeToAttributeToAttributeType[QVariant::Size][d_ptr->m_maximumAttribute] = |
1054 QVariant::Size; |
1054 QVariant::Size; |
1055 connect(sizePropertyManager, SIGNAL(valueChanged(QtProperty *, const QSize &)), |
1055 connect(sizePropertyManager, SIGNAL(valueChanged(QtProperty*,QSize)), |
1056 this, SLOT(slotValueChanged(QtProperty *, const QSize &))); |
1056 this, SLOT(slotValueChanged(QtProperty*,QSize))); |
1057 connect(sizePropertyManager, SIGNAL(rangeChanged(QtProperty *, const QSize &, const QSize &)), |
1057 connect(sizePropertyManager, SIGNAL(rangeChanged(QtProperty*,QSize,QSize)), |
1058 this, SLOT(slotRangeChanged(QtProperty *, const QSize &, const QSize &))); |
1058 this, SLOT(slotRangeChanged(QtProperty*,QSize,QSize))); |
1059 connect(sizePropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1059 connect(sizePropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1060 this, SLOT(slotValueChanged(QtProperty *, int))); |
1060 this, SLOT(slotValueChanged(QtProperty*,int))); |
1061 connect(sizePropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty *, int, int)), |
1061 connect(sizePropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty*,int,int)), |
1062 this, SLOT(slotRangeChanged(QtProperty *, int, int))); |
1062 this, SLOT(slotRangeChanged(QtProperty*,int,int))); |
1063 connect(sizePropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1063 connect(sizePropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1064 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1064 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1065 connect(sizePropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1065 connect(sizePropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1066 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1066 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1067 // SizeFPropertyManager |
1067 // SizeFPropertyManager |
1068 QtSizeFPropertyManager *sizeFPropertyManager = new QtSizeFPropertyManager(this); |
1068 QtSizeFPropertyManager *sizeFPropertyManager = new QtSizeFPropertyManager(this); |
1069 d_ptr->m_typeToPropertyManager[QVariant::SizeF] = sizeFPropertyManager; |
1069 d_ptr->m_typeToPropertyManager[QVariant::SizeF] = sizeFPropertyManager; |
1070 d_ptr->m_typeToValueType[QVariant::SizeF] = QVariant::SizeF; |
1070 d_ptr->m_typeToValueType[QVariant::SizeF] = QVariant::SizeF; |
1071 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_minimumAttribute] = |
1071 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_minimumAttribute] = |
1072 QVariant::SizeF; |
1072 QVariant::SizeF; |
1073 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_maximumAttribute] = |
1073 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_maximumAttribute] = |
1074 QVariant::SizeF; |
1074 QVariant::SizeF; |
1075 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_decimalsAttribute] = |
1075 d_ptr->m_typeToAttributeToAttributeType[QVariant::SizeF][d_ptr->m_decimalsAttribute] = |
1076 QVariant::Int; |
1076 QVariant::Int; |
1077 connect(sizeFPropertyManager, SIGNAL(valueChanged(QtProperty *, const QSizeF &)), |
1077 connect(sizeFPropertyManager, SIGNAL(valueChanged(QtProperty*,QSizeF)), |
1078 this, SLOT(slotValueChanged(QtProperty *, const QSizeF &))); |
1078 this, SLOT(slotValueChanged(QtProperty*,QSizeF))); |
1079 connect(sizeFPropertyManager, SIGNAL(rangeChanged(QtProperty *, const QSizeF &, const QSizeF &)), |
1079 connect(sizeFPropertyManager, SIGNAL(rangeChanged(QtProperty*,QSizeF,QSizeF)), |
1080 this, SLOT(slotRangeChanged(QtProperty *, const QSizeF &, const QSizeF &))); |
1080 this, SLOT(slotRangeChanged(QtProperty*,QSizeF,QSizeF))); |
1081 connect(sizeFPropertyManager, SIGNAL(decimalsChanged(QtProperty *, int)), |
1081 connect(sizeFPropertyManager, SIGNAL(decimalsChanged(QtProperty*,int)), |
1082 this, SLOT(slotDecimalsChanged(QtProperty *, int))); |
1082 this, SLOT(slotDecimalsChanged(QtProperty*,int))); |
1083 connect(sizeFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty *, double)), |
1083 connect(sizeFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty*,double)), |
1084 this, SLOT(slotValueChanged(QtProperty *, double))); |
1084 this, SLOT(slotValueChanged(QtProperty*,double))); |
1085 connect(sizeFPropertyManager->subDoublePropertyManager(), SIGNAL(rangeChanged(QtProperty *, double, double)), |
1085 connect(sizeFPropertyManager->subDoublePropertyManager(), SIGNAL(rangeChanged(QtProperty*,double,double)), |
1086 this, SLOT(slotRangeChanged(QtProperty *, double, double))); |
1086 this, SLOT(slotRangeChanged(QtProperty*,double,double))); |
1087 connect(sizeFPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1087 connect(sizeFPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1088 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1088 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1089 connect(sizeFPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1089 connect(sizeFPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1090 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1090 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1091 // RectPropertyManager |
1091 // RectPropertyManager |
1092 QtRectPropertyManager *rectPropertyManager = new QtRectPropertyManager(this); |
1092 QtRectPropertyManager *rectPropertyManager = new QtRectPropertyManager(this); |
1093 d_ptr->m_typeToPropertyManager[QVariant::Rect] = rectPropertyManager; |
1093 d_ptr->m_typeToPropertyManager[QVariant::Rect] = rectPropertyManager; |
1094 d_ptr->m_typeToValueType[QVariant::Rect] = QVariant::Rect; |
1094 d_ptr->m_typeToValueType[QVariant::Rect] = QVariant::Rect; |
1095 d_ptr->m_typeToAttributeToAttributeType[QVariant::Rect][d_ptr->m_constraintAttribute] = |
1095 d_ptr->m_typeToAttributeToAttributeType[QVariant::Rect][d_ptr->m_constraintAttribute] = |
1096 QVariant::Rect; |
1096 QVariant::Rect; |
1097 connect(rectPropertyManager, SIGNAL(valueChanged(QtProperty *, const QRect &)), |
1097 connect(rectPropertyManager, SIGNAL(valueChanged(QtProperty*,QRect)), |
1098 this, SLOT(slotValueChanged(QtProperty *, const QRect &))); |
1098 this, SLOT(slotValueChanged(QtProperty*,QRect))); |
1099 connect(rectPropertyManager, SIGNAL(constraintChanged(QtProperty *, const QRect &)), |
1099 connect(rectPropertyManager, SIGNAL(constraintChanged(QtProperty*,QRect)), |
1100 this, SLOT(slotConstraintChanged(QtProperty *, const QRect &))); |
1100 this, SLOT(slotConstraintChanged(QtProperty*,QRect))); |
1101 connect(rectPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1101 connect(rectPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1102 this, SLOT(slotValueChanged(QtProperty *, int))); |
1102 this, SLOT(slotValueChanged(QtProperty*,int))); |
1103 connect(rectPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty *, int, int)), |
1103 connect(rectPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty*,int,int)), |
1104 this, SLOT(slotRangeChanged(QtProperty *, int, int))); |
1104 this, SLOT(slotRangeChanged(QtProperty*,int,int))); |
1105 connect(rectPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1105 connect(rectPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1106 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1106 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1107 connect(rectPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1107 connect(rectPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1108 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1108 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1109 // RectFPropertyManager |
1109 // RectFPropertyManager |
1110 QtRectFPropertyManager *rectFPropertyManager = new QtRectFPropertyManager(this); |
1110 QtRectFPropertyManager *rectFPropertyManager = new QtRectFPropertyManager(this); |
1111 d_ptr->m_typeToPropertyManager[QVariant::RectF] = rectFPropertyManager; |
1111 d_ptr->m_typeToPropertyManager[QVariant::RectF] = rectFPropertyManager; |
1112 d_ptr->m_typeToValueType[QVariant::RectF] = QVariant::RectF; |
1112 d_ptr->m_typeToValueType[QVariant::RectF] = QVariant::RectF; |
1113 d_ptr->m_typeToAttributeToAttributeType[QVariant::RectF][d_ptr->m_constraintAttribute] = |
1113 d_ptr->m_typeToAttributeToAttributeType[QVariant::RectF][d_ptr->m_constraintAttribute] = |
1114 QVariant::RectF; |
1114 QVariant::RectF; |
1115 d_ptr->m_typeToAttributeToAttributeType[QVariant::RectF][d_ptr->m_decimalsAttribute] = |
1115 d_ptr->m_typeToAttributeToAttributeType[QVariant::RectF][d_ptr->m_decimalsAttribute] = |
1116 QVariant::Int; |
1116 QVariant::Int; |
1117 connect(rectFPropertyManager, SIGNAL(valueChanged(QtProperty *, const QRectF &)), |
1117 connect(rectFPropertyManager, SIGNAL(valueChanged(QtProperty*,QRectF)), |
1118 this, SLOT(slotValueChanged(QtProperty *, const QRectF &))); |
1118 this, SLOT(slotValueChanged(QtProperty*,QRectF))); |
1119 connect(rectFPropertyManager, SIGNAL(constraintChanged(QtProperty *, const QRectF &)), |
1119 connect(rectFPropertyManager, SIGNAL(constraintChanged(QtProperty*,QRectF)), |
1120 this, SLOT(slotConstraintChanged(QtProperty *, const QRectF &))); |
1120 this, SLOT(slotConstraintChanged(QtProperty*,QRectF))); |
1121 connect(rectFPropertyManager, SIGNAL(decimalsChanged(QtProperty *, int)), |
1121 connect(rectFPropertyManager, SIGNAL(decimalsChanged(QtProperty*,int)), |
1122 this, SLOT(slotDecimalsChanged(QtProperty *, int))); |
1122 this, SLOT(slotDecimalsChanged(QtProperty*,int))); |
1123 connect(rectFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty *, double)), |
1123 connect(rectFPropertyManager->subDoublePropertyManager(), SIGNAL(valueChanged(QtProperty*,double)), |
1124 this, SLOT(slotValueChanged(QtProperty *, double))); |
1124 this, SLOT(slotValueChanged(QtProperty*,double))); |
1125 connect(rectFPropertyManager->subDoublePropertyManager(), SIGNAL(rangeChanged(QtProperty *, double, double)), |
1125 connect(rectFPropertyManager->subDoublePropertyManager(), SIGNAL(rangeChanged(QtProperty*,double,double)), |
1126 this, SLOT(slotRangeChanged(QtProperty *, double, double))); |
1126 this, SLOT(slotRangeChanged(QtProperty*,double,double))); |
1127 connect(rectFPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1127 connect(rectFPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1128 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1128 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1129 connect(rectFPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1129 connect(rectFPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1130 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1130 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1131 // ColorPropertyManager |
1131 // ColorPropertyManager |
1132 QtColorPropertyManager *colorPropertyManager = new QtColorPropertyManager(this); |
1132 QtColorPropertyManager *colorPropertyManager = new QtColorPropertyManager(this); |
1133 d_ptr->m_typeToPropertyManager[QVariant::Color] = colorPropertyManager; |
1133 d_ptr->m_typeToPropertyManager[QVariant::Color] = colorPropertyManager; |
1134 d_ptr->m_typeToValueType[QVariant::Color] = QVariant::Color; |
1134 d_ptr->m_typeToValueType[QVariant::Color] = QVariant::Color; |
1135 connect(colorPropertyManager, SIGNAL(valueChanged(QtProperty *, const QColor &)), |
1135 connect(colorPropertyManager, SIGNAL(valueChanged(QtProperty*,QColor)), |
1136 this, SLOT(slotValueChanged(QtProperty *, const QColor &))); |
1136 this, SLOT(slotValueChanged(QtProperty*,QColor))); |
1137 connect(colorPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1137 connect(colorPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1138 this, SLOT(slotValueChanged(QtProperty *, int))); |
1138 this, SLOT(slotValueChanged(QtProperty*,int))); |
1139 connect(colorPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1139 connect(colorPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1140 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1140 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1141 connect(colorPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1141 connect(colorPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1142 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1142 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1143 // EnumPropertyManager |
1143 // EnumPropertyManager |
1144 int enumId = enumTypeId(); |
1144 int enumId = enumTypeId(); |
1145 QtEnumPropertyManager *enumPropertyManager = new QtEnumPropertyManager(this); |
1145 QtEnumPropertyManager *enumPropertyManager = new QtEnumPropertyManager(this); |
1146 d_ptr->m_typeToPropertyManager[enumId] = enumPropertyManager; |
1146 d_ptr->m_typeToPropertyManager[enumId] = enumPropertyManager; |
1147 d_ptr->m_typeToValueType[enumId] = QVariant::Int; |
1147 d_ptr->m_typeToValueType[enumId] = QVariant::Int; |
1148 d_ptr->m_typeToAttributeToAttributeType[enumId][d_ptr->m_enumNamesAttribute] = |
1148 d_ptr->m_typeToAttributeToAttributeType[enumId][d_ptr->m_enumNamesAttribute] = |
1149 QVariant::StringList; |
1149 QVariant::StringList; |
1150 d_ptr->m_typeToAttributeToAttributeType[enumId][d_ptr->m_enumIconsAttribute] = |
1150 d_ptr->m_typeToAttributeToAttributeType[enumId][d_ptr->m_enumIconsAttribute] = |
1151 iconMapTypeId(); |
1151 iconMapTypeId(); |
1152 connect(enumPropertyManager, SIGNAL(valueChanged(QtProperty *, int)), |
1152 connect(enumPropertyManager, SIGNAL(valueChanged(QtProperty*,int)), |
1153 this, SLOT(slotValueChanged(QtProperty *, int))); |
1153 this, SLOT(slotValueChanged(QtProperty*,int))); |
1154 connect(enumPropertyManager, SIGNAL(enumNamesChanged(QtProperty *, const QStringList &)), |
1154 connect(enumPropertyManager, SIGNAL(enumNamesChanged(QtProperty*,QStringList)), |
1155 this, SLOT(slotEnumNamesChanged(QtProperty *, const QStringList &))); |
1155 this, SLOT(slotEnumNamesChanged(QtProperty*,QStringList))); |
1156 connect(enumPropertyManager, SIGNAL(enumIconsChanged(QtProperty *, const QMap<int, QIcon> &)), |
1156 connect(enumPropertyManager, SIGNAL(enumIconsChanged(QtProperty*,QMap<int,QIcon>)), |
1157 this, SLOT(slotEnumIconsChanged(QtProperty *, const QMap<int, QIcon> &))); |
1157 this, SLOT(slotEnumIconsChanged(QtProperty*,QMap<int,QIcon>))); |
1158 // SizePolicyPropertyManager |
1158 // SizePolicyPropertyManager |
1159 QtSizePolicyPropertyManager *sizePolicyPropertyManager = new QtSizePolicyPropertyManager(this); |
1159 QtSizePolicyPropertyManager *sizePolicyPropertyManager = new QtSizePolicyPropertyManager(this); |
1160 d_ptr->m_typeToPropertyManager[QVariant::SizePolicy] = sizePolicyPropertyManager; |
1160 d_ptr->m_typeToPropertyManager[QVariant::SizePolicy] = sizePolicyPropertyManager; |
1161 d_ptr->m_typeToValueType[QVariant::SizePolicy] = QVariant::SizePolicy; |
1161 d_ptr->m_typeToValueType[QVariant::SizePolicy] = QVariant::SizePolicy; |
1162 connect(sizePolicyPropertyManager, SIGNAL(valueChanged(QtProperty *, const QSizePolicy &)), |
1162 connect(sizePolicyPropertyManager, SIGNAL(valueChanged(QtProperty*,QSizePolicy)), |
1163 this, SLOT(slotValueChanged(QtProperty *, const QSizePolicy &))); |
1163 this, SLOT(slotValueChanged(QtProperty*,QSizePolicy))); |
1164 connect(sizePolicyPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1164 connect(sizePolicyPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1165 this, SLOT(slotValueChanged(QtProperty *, int))); |
1165 this, SLOT(slotValueChanged(QtProperty*,int))); |
1166 connect(sizePolicyPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty *, int, int)), |
1166 connect(sizePolicyPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty*,int,int)), |
1167 this, SLOT(slotRangeChanged(QtProperty *, int, int))); |
1167 this, SLOT(slotRangeChanged(QtProperty*,int,int))); |
1168 connect(sizePolicyPropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1168 connect(sizePolicyPropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1169 this, SLOT(slotValueChanged(QtProperty *, int))); |
1169 this, SLOT(slotValueChanged(QtProperty*,int))); |
1170 connect(sizePolicyPropertyManager->subEnumPropertyManager(), |
1170 connect(sizePolicyPropertyManager->subEnumPropertyManager(), |
1171 SIGNAL(enumNamesChanged(QtProperty *, const QStringList &)), |
1171 SIGNAL(enumNamesChanged(QtProperty*,QStringList)), |
1172 this, SLOT(slotEnumNamesChanged(QtProperty *, const QStringList &))); |
1172 this, SLOT(slotEnumNamesChanged(QtProperty*,QStringList))); |
1173 connect(sizePolicyPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1173 connect(sizePolicyPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1174 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1174 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1175 connect(sizePolicyPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1175 connect(sizePolicyPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1176 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1176 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1177 // FontPropertyManager |
1177 // FontPropertyManager |
1178 QtFontPropertyManager *fontPropertyManager = new QtFontPropertyManager(this); |
1178 QtFontPropertyManager *fontPropertyManager = new QtFontPropertyManager(this); |
1179 d_ptr->m_typeToPropertyManager[QVariant::Font] = fontPropertyManager; |
1179 d_ptr->m_typeToPropertyManager[QVariant::Font] = fontPropertyManager; |
1180 d_ptr->m_typeToValueType[QVariant::Font] = QVariant::Font; |
1180 d_ptr->m_typeToValueType[QVariant::Font] = QVariant::Font; |
1181 connect(fontPropertyManager, SIGNAL(valueChanged(QtProperty *, const QFont &)), |
1181 connect(fontPropertyManager, SIGNAL(valueChanged(QtProperty*,QFont)), |
1182 this, SLOT(slotValueChanged(QtProperty *, const QFont &))); |
1182 this, SLOT(slotValueChanged(QtProperty*,QFont))); |
1183 connect(fontPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1183 connect(fontPropertyManager->subIntPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1184 this, SLOT(slotValueChanged(QtProperty *, int))); |
1184 this, SLOT(slotValueChanged(QtProperty*,int))); |
1185 connect(fontPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty *, int, int)), |
1185 connect(fontPropertyManager->subIntPropertyManager(), SIGNAL(rangeChanged(QtProperty*,int,int)), |
1186 this, SLOT(slotRangeChanged(QtProperty *, int, int))); |
1186 this, SLOT(slotRangeChanged(QtProperty*,int,int))); |
1187 connect(fontPropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty *, int)), |
1187 connect(fontPropertyManager->subEnumPropertyManager(), SIGNAL(valueChanged(QtProperty*,int)), |
1188 this, SLOT(slotValueChanged(QtProperty *, int))); |
1188 this, SLOT(slotValueChanged(QtProperty*,int))); |
1189 connect(fontPropertyManager->subEnumPropertyManager(), |
1189 connect(fontPropertyManager->subEnumPropertyManager(), |
1190 SIGNAL(enumNamesChanged(QtProperty *, const QStringList &)), |
1190 SIGNAL(enumNamesChanged(QtProperty*,QStringList)), |
1191 this, SLOT(slotEnumNamesChanged(QtProperty *, const QStringList &))); |
1191 this, SLOT(slotEnumNamesChanged(QtProperty*,QStringList))); |
1192 connect(fontPropertyManager->subBoolPropertyManager(), SIGNAL(valueChanged(QtProperty *, bool)), |
1192 connect(fontPropertyManager->subBoolPropertyManager(), SIGNAL(valueChanged(QtProperty*,bool)), |
1193 this, SLOT(slotValueChanged(QtProperty *, bool))); |
1193 this, SLOT(slotValueChanged(QtProperty*,bool))); |
1194 connect(fontPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1194 connect(fontPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1195 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1195 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1196 connect(fontPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1196 connect(fontPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1197 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1197 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1198 // CursorPropertyManager |
1198 // CursorPropertyManager |
1199 QtCursorPropertyManager *cursorPropertyManager = new QtCursorPropertyManager(this); |
1199 QtCursorPropertyManager *cursorPropertyManager = new QtCursorPropertyManager(this); |
1200 d_ptr->m_typeToPropertyManager[QVariant::Cursor] = cursorPropertyManager; |
1200 d_ptr->m_typeToPropertyManager[QVariant::Cursor] = cursorPropertyManager; |
1201 d_ptr->m_typeToValueType[QVariant::Cursor] = QVariant::Cursor; |
1201 d_ptr->m_typeToValueType[QVariant::Cursor] = QVariant::Cursor; |
1202 connect(cursorPropertyManager, SIGNAL(valueChanged(QtProperty *, const QCursor &)), |
1202 connect(cursorPropertyManager, SIGNAL(valueChanged(QtProperty*,QCursor)), |
1203 this, SLOT(slotValueChanged(QtProperty *, const QCursor &))); |
1203 this, SLOT(slotValueChanged(QtProperty*,QCursor))); |
1204 // FlagPropertyManager |
1204 // FlagPropertyManager |
1205 int flagId = flagTypeId(); |
1205 int flagId = flagTypeId(); |
1206 QtFlagPropertyManager *flagPropertyManager = new QtFlagPropertyManager(this); |
1206 QtFlagPropertyManager *flagPropertyManager = new QtFlagPropertyManager(this); |
1207 d_ptr->m_typeToPropertyManager[flagId] = flagPropertyManager; |
1207 d_ptr->m_typeToPropertyManager[flagId] = flagPropertyManager; |
1208 d_ptr->m_typeToValueType[flagId] = QVariant::Int; |
1208 d_ptr->m_typeToValueType[flagId] = QVariant::Int; |
1209 d_ptr->m_typeToAttributeToAttributeType[flagId][d_ptr->m_flagNamesAttribute] = |
1209 d_ptr->m_typeToAttributeToAttributeType[flagId][d_ptr->m_flagNamesAttribute] = |
1210 QVariant::StringList; |
1210 QVariant::StringList; |
1211 connect(flagPropertyManager, SIGNAL(valueChanged(QtProperty *, int)), |
1211 connect(flagPropertyManager, SIGNAL(valueChanged(QtProperty*,int)), |
1212 this, SLOT(slotValueChanged(QtProperty *, int))); |
1212 this, SLOT(slotValueChanged(QtProperty*,int))); |
1213 connect(flagPropertyManager, SIGNAL(flagNamesChanged(QtProperty *, const QStringList &)), |
1213 connect(flagPropertyManager, SIGNAL(flagNamesChanged(QtProperty*,QStringList)), |
1214 this, SLOT(slotFlagNamesChanged(QtProperty *, const QStringList &))); |
1214 this, SLOT(slotFlagNamesChanged(QtProperty*,QStringList))); |
1215 connect(flagPropertyManager->subBoolPropertyManager(), SIGNAL(valueChanged(QtProperty *, bool)), |
1215 connect(flagPropertyManager->subBoolPropertyManager(), SIGNAL(valueChanged(QtProperty*,bool)), |
1216 this, SLOT(slotValueChanged(QtProperty *, bool))); |
1216 this, SLOT(slotValueChanged(QtProperty*,bool))); |
1217 connect(flagPropertyManager, SIGNAL(propertyInserted(QtProperty *, QtProperty *, QtProperty *)), |
1217 connect(flagPropertyManager, SIGNAL(propertyInserted(QtProperty*,QtProperty*,QtProperty*)), |
1218 this, SLOT(slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))); |
1218 this, SLOT(slotPropertyInserted(QtProperty*,QtProperty*,QtProperty*))); |
1219 connect(flagPropertyManager, SIGNAL(propertyRemoved(QtProperty *, QtProperty *)), |
1219 connect(flagPropertyManager, SIGNAL(propertyRemoved(QtProperty*,QtProperty*)), |
1220 this, SLOT(slotPropertyRemoved(QtProperty *, QtProperty *))); |
1220 this, SLOT(slotPropertyRemoved(QtProperty*,QtProperty*))); |
1221 // FlagPropertyManager |
1221 // FlagPropertyManager |
1222 int groupId = groupTypeId(); |
1222 int groupId = groupTypeId(); |
1223 QtGroupPropertyManager *groupPropertyManager = new QtGroupPropertyManager(this); |
1223 QtGroupPropertyManager *groupPropertyManager = new QtGroupPropertyManager(this); |
1224 d_ptr->m_typeToPropertyManager[groupId] = groupPropertyManager; |
1224 d_ptr->m_typeToPropertyManager[groupId] = groupPropertyManager; |
1225 d_ptr->m_typeToValueType[groupId] = QVariant::Invalid; |
1225 d_ptr->m_typeToValueType[groupId] = QVariant::Invalid; |