Fix Render Widget's file dialog not working correctly

(requires KDE Frameworks >= 5.33)
BUG: 371685
parent 28816933
......@@ -286,6 +286,11 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, const
//m_view.splitter->setStretchFactor(0, 2);
m_view.out_file->setMode(KFile::File);
#if KXMLGUI_VERSION_MINOR > 32 || KXMLGUI_VERSION_MAJOR > 5
m_view.out_file->setAcceptMode(QFileDialog::AcceptSave);
#endif
m_view.out_file->setFocusPolicy(Qt::ClickFocus);
m_view.running_jobs->setHeaderLabels(QStringList() << QString() << i18n("File"));
......
......@@ -59,11 +59,8 @@
</item>
<item>
<widget class="KUrlRequester" name="out_file">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<property name="mode">
<set>KFile::File|KFile::LocalOnly</set>
</property>
</widget>
</item>
......@@ -950,17 +947,17 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KUrlRequester</class>
<extends>QFrame</extends>
<extends>QWidget</extends>
<header>kurlrequester.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
......
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