Commit aba8bb03 authored by Ahmad Samir's avatar Ahmad Samir Committed by Tomaz Canabrava
Browse files

Add an option to disable thumbnails generation

parent 39d3437d
......@@ -209,7 +209,12 @@ void FileFilterHotSpot::setupMenu(QMenu *menu)
bool FileFilterHotSpot::_canGenerateThumbnail = false;
QPointer<KIO::PreviewJob> FileFilterHotSpot::_previewJob;
void FileFilterHotSpot::requestThumbnail(Qt::KeyboardModifiers modifiers, const QPoint &pos) {
void FileFilterHotSpot::requestThumbnail(Qt::KeyboardModifiers modifiers, const QPoint &pos)
{
if (!KonsoleSettings::self()->enableThumbnails()) {
return;
}
_canGenerateThumbnail = true;
_eventModifiers = modifiers;
_eventPos = pos;
......
......@@ -11,14 +11,14 @@
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<item row="1" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Size:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<item row="1" column="1">
<widget class="QSpinBox" name="kcfg_ThumbnailSize">
<property name="suffix">
<string>px</string>
......@@ -31,59 +31,70 @@
</property>
</widget>
</item>
<item row="2" column="1">
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;To use this feature, enable &lt;span style=&quot; font-weight:600;&quot;&gt;Mouse-&amp;gt;Miscellaneous-&amp;gt;Underline &lt;/span&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;files&lt;/span&gt; in your profile settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Activation:</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Mouse hover plus</string>
</property>
</widget>
</item>
<item row="3" column="1">
<item row="4" column="1">
<widget class="QCheckBox" name="kcfg_ThumbnailShift">
<property name="text">
<string>Shift</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="5" column="1">
<widget class="QCheckBox" name="kcfg_ThumbnailAlt">
<property name="text">
<string>Alt</string>
</property>
</widget>
</item>
<item row="5" column="1">
<item row="6" column="1">
<widget class="QCheckBox" name="kcfg_ThumbnailCtrl">
<property name="text">
<string>Ctrl</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;To use this feature, enable &lt;span style=&quot; font-weight:600;&quot;&gt;Mouse-&amp;gt;Miscellaneous-&amp;gt;Underline &lt;/span&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;files&lt;/span&gt; in your profile settings&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Activation:</string>
</property>
<property name="margin">
<number>0</number>
</property>
</widget>
<item row="0" column="0" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QCheckBox" name="kcfg_EnableThumbnails">
<property name="text">
<string>Enable thumbnails generation</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
......
......@@ -45,6 +45,9 @@
</entry>
</group>
<group name="ThumbnailsSettings">
<entry name="EnableThumbnails" type="Bool">
<default>true</default>
</entry>
<entry name="ThumbnailSize" type="Int">
<label>Thumbnail Width</label>
<tooltip>Sets the width of the thumbnail</tooltip>
......
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