QTfrontend/ui/widget/mapContainer.cpp
branchqt5transition
changeset 12897 fc47fc4af6bd
parent 11910 245163aa3674
child 13212 e9e4cc867b6e
equal deleted inserted replaced
12896:8869b5256720 12897:fc47fc4af6bd
   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()));