Commit 5e3906cc authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Move defaultOpenAction to General Settings page

This setting is about the default double-click behavior, so does not
really belong to the Preview page.

BUG: 357658
FIXED-IN: 16.12.0
Differential Revision: D3381
parent 1caeff2b
......@@ -9,6 +9,14 @@
<label>Whether to show a warning when creating zip archives with AES encryption.</label>
<default>true</default>
</entry>
<entry name="defaultOpenAction" type="Enum">
<label>Default action when opening archive entries.</label>
<choices>
<choice name="Preview"/>
<choice name="Open"/>
</choices>
<default>Preview</default>
</entry>
</group>
<group name="Extraction">
<entry name="openDestinationFolderAfterExtraction" type="Bool">
......@@ -39,14 +47,6 @@
</entry>
</group>
<group name="Preview">
<entry name="defaultOpenAction" type="Enum">
<label>Default action when opening archive entries.</label>
<choices>
<choice name="Preview"/>
<choice name="Open"/>
</choices>
<default>Preview</default>
</entry>
<entry name="limitPreviewFileSize" type="Bool">
<label>Whether to limit the preview according to file size.</label>
<default>true</default>
......
......@@ -11,6 +11,49 @@
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>When clicking a file in an archive or pressing the Return key:</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="kcfg_defaultOpenAction">
<property name="title">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QRadioButton" name="radioButton">
<property name="text">
<string>Pre&amp;view the file with internal previewer</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="radioButton_2">
<property name="text">
<string>Ope&amp;n the file with associated application</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_showEncryptionWarning">
<property name="text">
......
......@@ -11,64 +11,6 @@
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>When clicking a file in an archive or pressing the Return key:</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="kcfg_defaultOpenAction">
<property name="title">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QRadioButton" name="Preview">
<property name="text">
<string>Pre&amp;view the file with internal previewer</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="Open">
<property name="text">
<string>Ope&amp;n the file with associated application</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
......
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