mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[plasmalnf] Simplify (warnings--, debug--)
This commit is contained in:
parent
faa1cb6b65
commit
06cbabd189
1 changed files with 4 additions and 5 deletions
|
@ -39,7 +39,7 @@ ThemeColumns::ThemeColumns( QObject* parent )
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant
|
QVariant
|
||||||
ThemeColumns::extraColumnData( const QModelIndex& parent, int row, int extraColumn, int role ) const
|
ThemeColumns::extraColumnData( const QModelIndex&, int row, int extraColumn, int role ) const
|
||||||
{
|
{
|
||||||
if ( role != Qt::DisplayRole )
|
if ( role != Qt::DisplayRole )
|
||||||
{
|
{
|
||||||
|
@ -80,9 +80,9 @@ PlasmaLnfPage::PlasmaLnfPage( Config* config, QWidget* parent )
|
||||||
connect( this, &PlasmaLnfPage::plasmaThemeSelected, config, &Config::setTheme );
|
connect( this, &PlasmaLnfPage::plasmaThemeSelected, config, &Config::setTheme );
|
||||||
|
|
||||||
QTableView* view = new QTableView( this );
|
QTableView* view = new QTableView( this );
|
||||||
ThemeColumns* model = new ThemeColumns( this );
|
ThemeColumns* columnsModel = new ThemeColumns( this );
|
||||||
model->setSourceModel( m_config->themeModel() );
|
columnsModel->setSourceModel( m_config->themeModel() );
|
||||||
view->setModel( model );
|
view->setModel( columnsModel );
|
||||||
view->verticalHeader()->hide();
|
view->verticalHeader()->hide();
|
||||||
view->horizontalHeader()->hide();
|
view->horizontalHeader()->hide();
|
||||||
ui->verticalLayout->addWidget( view );
|
ui->verticalLayout->addWidget( view );
|
||||||
|
@ -96,7 +96,6 @@ PlasmaLnfPage::PlasmaLnfPage( Config* config, QWidget* parent )
|
||||||
auto row = i.first().row();
|
auto row = i.first().row();
|
||||||
auto* model = m_config->themeModel();
|
auto* model = m_config->themeModel();
|
||||||
auto id = model->data( model->index( row, 0 ), ThemesModel::KeyRole ).toString();
|
auto id = model->data( model->index( row, 0 ), ThemesModel::KeyRole ).toString();
|
||||||
cDebug() << "View selected" << selected << id;
|
|
||||||
if ( !id.isEmpty() )
|
if ( !id.isEmpty() )
|
||||||
{
|
{
|
||||||
emit plasmaThemeSelected( id );
|
emit plasmaThemeSelected( id );
|
||||||
|
|
Loading…
Add table
Reference in a new issue