equal
deleted
inserted
replaced
982 |
982 |
983 void HWMapContainer::updateTheme(const QModelIndex & current) |
983 void HWMapContainer::updateTheme(const QModelIndex & current) |
984 { |
984 { |
985 m_theme = selectedTheme = current.data(ThemeModel::ActualNameRole).toString(); |
985 m_theme = selectedTheme = current.data(ThemeModel::ActualNameRole).toString(); |
986 m_themeID = current.row(); |
986 m_themeID = current.row(); |
987 QIcon icon = qVariantValue<QIcon>(current.data(Qt::DecorationRole)); |
987 QIcon icon = current.data(Qt::DecorationRole).value<QIcon>(); |
988 //QSize iconSize = icon.actualSize(QSize(65535, 65535)); |
988 //QSize iconSize = icon.actualSize(QSize(65535, 65535)); |
989 //btnTheme->setFixedHeight(64); |
989 //btnTheme->setFixedHeight(64); |
990 //btnTheme->setIconSize(iconSize); |
990 //btnTheme->setIconSize(iconSize); |
991 btnTheme->setIcon(icon); |
991 btnTheme->setIcon(icon); |
992 btnTheme->setText(tr("Theme: %1").arg(current.data(Qt::DisplayRole).toString())); |
992 btnTheme->setText(tr("Theme: %1").arg(current.data(Qt::DisplayRole).toString())); |