int BlogListWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QListWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QColor*>(_v) = titleTextColor(); break;
        case 1: *reinterpret_cast< QString*>(_v) = titleTextFontFamily(); break;
        case 2: *reinterpret_cast< QString*>(_v) = titleTextFontSize(); break;
        case 3: *reinterpret_cast< QString*>(_v) = titleTextExtraLeading(); break;
        case 4: *reinterpret_cast< QColor*>(_v) = introTextColor(); break;
        case 5: *reinterpret_cast< QString*>(_v) = introTextFontFamily(); break;
        case 6: *reinterpret_cast< QString*>(_v) = introTextFontSize(); break;
        case 7: *reinterpret_cast< QString*>(_v) = introTextExtraLeading(); break;
        case 8: *reinterpret_cast< QColor*>(_v) = dateTextColor(); break;
        case 9: *reinterpret_cast< QString*>(_v) = dateTextFontFamily(); break;
        case 10: *reinterpret_cast< QString*>(_v) = dateTextFontSize(); break;
        }
        _id -= 11;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setTitleTextColor(*reinterpret_cast< QColor*>(_v)); break;
        case 1: setTitleTextFontFamily(*reinterpret_cast< QString*>(_v)); break;
        case 2: setTitleTextFontSize(*reinterpret_cast< QString*>(_v)); break;
        case 3: setTitleTextExtraLeading(*reinterpret_cast< QString*>(_v)); break;
        case 4: setIntroTextColor(*reinterpret_cast< QColor*>(_v)); break;
        case 5: setIntroTextFontFamily(*reinterpret_cast< QString*>(_v)); break;
        case 6: setIntroTextFontSize(*reinterpret_cast< QString*>(_v)); break;
        case 7: setIntroTextExtraLeading(*reinterpret_cast< QString*>(_v)); break;
        case 8: setDateTextColor(*reinterpret_cast< QColor*>(_v)); break;
        case 9: setDateTextFontFamily(*reinterpret_cast< QString*>(_v)); break;
        case 10: setDateTextFontSize(*reinterpret_cast< QString*>(_v)); break;
        }
        _id -= 11;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 11;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 11;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
示例#2
0
void DateTime::create( const Seed & cs )
{
	ControlType::create(cs);
	setFont(cs.font);
	setFormat( cs.format );
	setDateTime( cs.initialDateTime );
	setBackgroundColor( cs.backgroundColor );
	setMonthBackgroundColor( cs.monthBackgroundColor );
	setMonthTextColor( cs.monthTextColor );
	setTitleBackgroundColor( cs.titleBackgroundColor );
	setTrailingTextColor( cs.trailingTextColor );
	setTitleTextColor( cs.titleTextColor );
}