File 2001-configdialog.patch of Package kate
diff --git a/apps/lib/kateconfigdialog.cpp b/apps/lib/kateconfigdialog.cpp
index 77d13d7c807883f13110701c4b21ae744216c13e..f7d56c07bd6c37ac3b8409d5f307b25d02301361 100644
--- a/apps/lib/kateconfigdialog.cpp
+++ b/apps/lib/kateconfigdialog.cpp
@@ -53,12 +53,7 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent)
setWindowIcon(QIcon::fromTheme(QStringLiteral("configure")));
setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
- // we may have a lot of pages on Kate, we want small icons for the list
- if (KateApp::isKate()) {
- setFaceType(KPageDialog::FlatList);
- } else {
- setFaceType(KPageDialog::List);
- }
+ setFaceType(KPageDialog::List);
const auto listViews = findChildren<QListView *>();
for (auto *lv : listViews) {
@@ -717,14 +712,7 @@ void KateConfigDialog::closeEvent(QCloseEvent *event)
KPageWidgetItem *KateConfigDialog::addScrollablePage(QWidget *page, const QString &itemName)
{
- // inspired by KPageWidgetItem *KConfigDialogPrivate::addPageInternal(QWidget *page, const QString &itemName, const QString &pixmapName, const QString
- // &header)
- QWidget *frame = new QWidget(this);
- QVBoxLayout *boxLayout = new QVBoxLayout(frame);
- boxLayout->setContentsMargins(0, 0, 0, 0);
- boxLayout->setContentsMargins(0, 0, 0, 0);
-
- QScrollArea *scroll = new QScrollArea(frame);
+ QScrollArea *scroll = new QScrollArea;
scroll->setFrameShape(QFrame::NoFrame);
scroll->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
scroll->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
@@ -732,8 +720,7 @@ KPageWidgetItem *KateConfigDialog::addScrollablePage(QWidget *page, const QStrin
scroll->setWidgetResizable(true);
scroll->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
- boxLayout->addWidget(scroll);
- return addPage(frame, itemName);
+ return addPage(scroll, itemName);
}
#include "moc_kateconfigdialog.cpp"
diff --git a/apps/lib/katemainwindow.cpp b/apps/lib/katemainwindow.cpp
index db6acc3dc308931efe53080407ff48439779b843..1e292c3084746f93eeba15e391d6437df4592017 100644
--- a/apps/lib/katemainwindow.cpp
+++ b/apps/lib/katemainwindow.cpp
@@ -1111,7 +1111,7 @@ bool KateMainWindow::showPluginConfigPage(KTextEditor::Plugin *configpageinterfa
// start with a bit enlarged default size hint to minimize changes of useless scrollbars
// enlarge it to half of the main window size, if that is larger
// bounded size to available real screen space
- QSize dialogSize = dlg->sizeHint() * 1.3;
+ QSize dialogSize = dlg->sizeHint() * 1.1;
dialogSize = dialogSize.expandedTo(size() * 0.5);
dlg->resize(dialogSize.boundedTo(screen()->availableSize() * 0.9));