#ifndef STYLESET_H #define STYLESET_H #include #include "style.h" //Added by qt3to4: #include template class StyleSet : public StyleContext { public: STYLE& operator[] (int index) { assert(index < styles.count()); return * styles[index]; } STYLE* getDefault(){ return m_default; } const STYLE& get(const QString& name) const { return * dynamic_cast(resolve(name)); } const STYLE& operator[] (int index) const { assert(index < styles.count()); return * styles[index]; } inline int find(const QString& name) const; inline const Style* resolve(const QString& name) const; int count() const { return styles.count(); } STYLE* append(STYLE* style) { styles.append(style); style->setContext(this); return style; } inline void remove(int index); inline void redefine(const StyleSet