Commit 8af630ce authored by Michael Lang's avatar Michael Lang Committed by Albert Astals Cid
Browse files

Smaller config sizing

parent c30fa25c
...@@ -381,10 +381,12 @@ KCardThemeWidget::KCardThemeWidget( const QSet<QString> & requiredFeatures, cons ...@@ -381,10 +381,12 @@ KCardThemeWidget::KCardThemeWidget( const QSet<QString> & requiredFeatures, cons
d->listView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel ); d->listView->setVerticalScrollMode( QAbstractItemView::ScrollPerPixel );
d->listView->setAlternatingRowColors( true ); d->listView->setAlternatingRowColors( true );
if (parent && parent->width() >= 650) {
// FIXME This is just a fudge factor. It should be possible to detemine // FIXME This is just a fudge factor. It should be possible to detemine
// the actual width necessary including frame and scrollbar somehow. // the actual width necessary including frame and scrollbar somehow.
d->listView->setMinimumWidth( d->itemSize.width() * 1.1 ); d->listView->setMinimumWidth( d->itemSize.width() * 1.1 );
d->listView->setMinimumHeight( d->itemSize.height() * 2.5 ); d->listView->setMinimumHeight( d->itemSize.height() * 2.5 );
}
d->hiddenLineEdit = new KLineEdit( this ); d->hiddenLineEdit = new KLineEdit( this );
d->hiddenLineEdit->setObjectName( QStringLiteral( "kcfg_CardTheme" ) ); d->hiddenLineEdit->setObjectName( QStringLiteral( "kcfg_CardTheme" ) );
......
...@@ -437,14 +437,14 @@ void MainWindow::configureAppearance() ...@@ -437,14 +437,14 @@ void MainWindow::configureAppearance()
{ {
KConfigDialog * dialog = new KConfigDialog( this, QStringLiteral("KPatAppearanceDialog"), Settings::self() ); KConfigDialog * dialog = new KConfigDialog( this, QStringLiteral("KPatAppearanceDialog"), Settings::self() );
dialog->addPage( new KCardThemeWidget( features, previewFormat ), dialog->addPage( new KCardThemeWidget( features, previewFormat, this ),
i18n("Card Deck"), i18n("Card Deck"),
QStringLiteral("games-config-theme"), QStringLiteral("games-config-theme"),
i18n("Select a card deck") i18n("Select a card deck")
); );
KgThemeProvider* provider = Renderer::self()->themeProvider(); KgThemeProvider* provider = Renderer::self()->themeProvider();
dialog->addPage( new KgThemeSelector(provider, KgThemeSelector::EnableNewStuffDownload), dialog->addPage( new KgThemeSelector(provider, KgThemeSelector::EnableNewStuffDownload, this),
i18n("Game Theme"), i18n("Game Theme"),
QStringLiteral("games-config-theme"), QStringLiteral("games-config-theme"),
i18n("Select a theme for non-card game elements") i18n("Select a theme for non-card game elements")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment