mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
Add an option to disable thumbnails generation
This commit is contained in:
committed by
Tomaz Canabrava
parent
39d3437df9
commit
aba8bb0303
@@ -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,35 +31,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Mouse hover plus</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailShift">
|
||||
<property name="text">
|
||||
<string>Shift</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailAlt">
|
||||
<property name="text">
|
||||
<string>Alt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailCtrl">
|
||||
<property name="text">
|
||||
<string>Ctrl</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>To use this feature, enable <span style=" font-weight:600;">Mouse-&gt;Miscellaneous-&gt;Underline </span><span style=" font-weight:600;">files</span> in your profile settings</p></body></html></string>
|
||||
@@ -75,7 +47,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Activation:</string>
|
||||
@@ -85,6 +57,45 @@
|
||||
</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="4" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailShift">
|
||||
<property name="text">
|
||||
<string>Shift</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailAlt">
|
||||
<property name="text">
|
||||
<string>Alt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QCheckBox" name="kcfg_ThumbnailCtrl">
|
||||
<property name="text">
|
||||
<string>Ctrl</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<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>
|
||||
<resources/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user