#include <QtGui/qdirmodel.h> #ifndef QDIRMODEL_H #ifndef QT_NO_DIRMODEL class QFileIconProvider{ /* Some contents are skipped to improve readability */ public: enum IconType{ /* ... */ Network = 3, /* ... */ }; /* ... */ }; #endif // QT_NO_DIRMODEL #endif // QDIRMODEL_H