template <typename T>inline const T *v_cast(const QVariant::Private *d, T * = 0){ return ((sizeof(T) > sizeof(QVariant::Private::Data)) // this is really a static_cast, but gcc 2.95 complains about it. ? reinterpret_cast<const T*>(d->data.shared->ptr) : reinterpret_cast<const T*>(&d->data.ptr));}template <typename T>inline T *v_cast(QVariant::Private *d, T * = 0){ return ((sizeof(T) > sizeof(QVariant::Private::Data)) // this is really a static_cast, but gcc 2.95 complains about it. ? reinterpret_cast<T*>(d->data.shared->ptr) : reinterpret_cast<T*>(&d->data.ptr));}
struct RuleRoleMap{ int state; QPalette::ColorGroup group;};RuleRoleMap map[3];map[0].state = PseudoClass_Enabled;map[0].group = QPalette::Active;map[1].state = PseudoClass_Disabled;map[1].group = QPalette::Disabled;map[2].state = PseudoClass_Enabled;map[2].group = QPalette::Inctive;