Commit f2e53e28 authored by jrv ezg's avatar jrv ezg Committed by Christoph Cullmann
Browse files

Use KPageDialog::List on KWrite's config dialog

It looks better this way, KWrite doesn't have that many pages.
parent 38f58472
Pipeline #255522 canceled with stage
......@@ -72,10 +72,15 @@ KateConfigDialog::KateConfigDialog(KateMainWindow *parent)
qWarning() << Q_FUNC_INFO << "Failed to get layout! Search will be disabled";
}
// we may have a lot of pages, we want small icons for the list
// we may have a lot of pages on Kate, we want small icons for the list
if (KateApp::isKate()) {
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 94, 0)
setFaceType(KPageDialog::FlatList);
setFaceType(KPageDialog::FlatList);
#endif
}
else {
setFaceType(KPageDialog::List);
}
const auto listViews = findChildren<QListView *>();
for (auto *lv : listViews) {
......
Supports Markdown
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