diff --git a/src/plugins/coreplugin/dialogs/newdialog.cpp b/src/plugins/coreplugin/dialogs/newdialog.cpp index 80f8eb8d4d2..cdfff0d9892 100644 --- a/src/plugins/coreplugin/dialogs/newdialog.cpp +++ b/src/plugins/coreplugin/dialogs/newdialog.cpp @@ -91,21 +91,6 @@ public: return true; } - QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override - { - if (role == Qt::DecorationRole) { - // scale too small icons to have one size for all - QIcon icon = qvariant_cast(QSortFilterProxyModel::data(index, role)); - if (!icon.isNull()) { - QPixmap pixmap(icon.pixmap(ICON_SIZE, ICON_SIZE)); - if (pixmap.size() != QSize(ICON_SIZE, ICON_SIZE)) - return pixmap.scaled(ICON_SIZE, ICON_SIZE, Qt::KeepAspectRatio, Qt::SmoothTransformation); - } - } - - return QSortFilterProxyModel::data(index, role); - } - private: Core::Id m_platform; };