diff --git a/src/modules/plasmalnf/PlasmaLnfPage.cpp b/src/modules/plasmalnf/PlasmaLnfPage.cpp index 20c2a5569..3dc367fe5 100644 --- a/src/modules/plasmalnf/PlasmaLnfPage.cpp +++ b/src/modules/plasmalnf/PlasmaLnfPage.cpp @@ -17,10 +17,9 @@ #include "utils/Logger.h" #include "utils/Retranslator.h" -#include - -#include -#include +#include +#include +#include PlasmaLnfPage::PlasmaLnfPage( Config* config, QWidget* parent ) : QWidget( parent ) @@ -43,8 +42,9 @@ PlasmaLnfPage::PlasmaLnfPage( Config* config, QWidget* parent ) } ) connect( this, &PlasmaLnfPage::plasmaThemeSelected, config, &Config::setTheme ); - QListView* view = new QListView( this ); - view->setUniformItemSizes( true ); + QTableView* view = new QTableView( this ); + view->verticalHeader()->hide(); + view->horizontalHeader()->hide(); view->setModel( m_config->themeModel() ); ui->verticalLayout->addWidget( view ); diff --git a/src/modules/plasmalnf/ThemeInfo.cpp b/src/modules/plasmalnf/ThemeInfo.cpp index 86f7ad344..da5ca7f44 100644 --- a/src/modules/plasmalnf/ThemeInfo.cpp +++ b/src/modules/plasmalnf/ThemeInfo.cpp @@ -126,6 +126,8 @@ ThemesModel::data( const QModelIndex& index, int role ) const return item.id; case ShownRole: return item.show; + case DescriptionRole: + return item.description; default: return QVariant(); } diff --git a/src/modules/plasmalnf/ThemeInfo.h b/src/modules/plasmalnf/ThemeInfo.h index 474bb3ff8..0c4f2fd34 100644 --- a/src/modules/plasmalnf/ThemeInfo.h +++ b/src/modules/plasmalnf/ThemeInfo.h @@ -26,6 +26,7 @@ public: LabelRole = Qt::DisplayRole, KeyRole = Qt::UserRole, ShownRole, + DescriptionRole, ImageRole };