QHash<QString, QPixmap> icons;...QVariant Model::data(int role) const {if (role == Qt::DecorationRole) return icons[iconName];}
QVariant Model::data(int role) const {if (role == Qt::DecorationRole) return new Pixmap(iconName, "PNG");}
QHash<QString, QPixmap> icons;