diff --git a/src/filewidgets/kfilewidget.h b/src/filewidgets/kfilewidget.h --- a/src/filewidgets/kfilewidget.h +++ b/src/filewidgets/kfilewidget.h @@ -515,6 +515,13 @@ */ QStringList supportedSchemes() const; + /** + * Saves any changes made to the view settings (dialog size, current view mode, etc) + * This is the public interface to KFileWidgetPrivate::writeViewConfig() + * @since 5.46 + */ + void writeViewConfig(); + public Q_SLOTS: /** * Called when clicking ok (when this widget is used in KFileDialog) diff --git a/src/filewidgets/kfilewidget.cpp b/src/filewidgets/kfilewidget.cpp --- a/src/filewidgets/kfilewidget.cpp +++ b/src/filewidgets/kfilewidget.cpp @@ -1942,6 +1942,11 @@ } } +void KFileWidget::writeViewConfig() +{ + d->writeViewConfig(); +} + void KFileWidgetPrivate::writeViewConfig() { // these settings are global settings; ALL instances of the file dialog