QTfrontend/ui/widget/mapContainer.cpp
changeset 13193 16b375b21af1
parent 12902 fc47fc4af6bd
child 13217 e9e4cc867b6e
equal deleted inserted replaced
13192:e2a83a7b783c 13193:16b375b21af1
   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()));