mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
remove margin around CoverGridTab
This commit is contained in:
parent
68809470b5
commit
5bec0d125a
@ -7,7 +7,7 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from qt.core import QBrush, QColor, QColorDialog, QDialog, QPainter, QPixmap, QPushButton, QSize, QSizePolicy, Qt, QVBoxLayout, QWidget, pyqtSignal
|
from qt.core import QBrush, QColor, QColorDialog, QDialog, QPainter, QPixmap, QPushButton, QSize, QSizePolicy, Qt, QTabWidget, QVBoxLayout, QWidget, pyqtSignal
|
||||||
|
|
||||||
from calibre import human_readable
|
from calibre import human_readable
|
||||||
from calibre.gui2 import gprefs, open_local_file, question_dialog
|
from calibre.gui2 import gprefs, open_local_file, question_dialog
|
||||||
@ -54,10 +54,15 @@ class Background(QWidget):
|
|||||||
painter.end()
|
painter.end()
|
||||||
|
|
||||||
|
|
||||||
class CoverGridTab(LazyConfigWidgetBase, Ui_Form):
|
class CoverGridTab(QTabWidget, LazyConfigWidgetBase, Ui_Form):
|
||||||
|
|
||||||
|
changed_signal = pyqtSignal()
|
||||||
|
restart_now = pyqtSignal()
|
||||||
size_calculated = pyqtSignal(object)
|
size_calculated = pyqtSignal(object)
|
||||||
|
|
||||||
|
def __init__(self, parent=None):
|
||||||
|
super().__init__(parent)
|
||||||
|
|
||||||
def genesis(self, gui):
|
def genesis(self, gui):
|
||||||
self.gui = gui
|
self.gui = gui
|
||||||
db = self.gui.library_view.model().db
|
db = self.gui.library_view.model().db
|
||||||
|
@ -1,423 +1,417 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>Form</class>
|
<class>Form</class>
|
||||||
<widget class="QWidget" name="Form">
|
<widget class="QTabWidget" name="cover_grid_tab">
|
||||||
<layout class="QVBoxLayout" name="vBoxLayout_cover_grid">
|
<property name="currentIndex">
|
||||||
<item>
|
<number>0</number>
|
||||||
<widget class="QTabWidget" name="cover_grid_tab">
|
</property>
|
||||||
<property name="currentIndex">
|
<widget class="QWidget" name="tab_5">
|
||||||
<number>0</number>
|
<attribute name="title">
|
||||||
|
<string>&Layout</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QFormLayout" name="formLayout_2">
|
||||||
|
<property name="fieldGrowthPolicy">
|
||||||
|
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab_5">
|
<item row="0" column="0" colspan="2">
|
||||||
<attribute name="title">
|
<widget class="QLabel" name="label_19">
|
||||||
<string>&Layout</string>
|
<property name="text">
|
||||||
</attribute>
|
<string>Control the Cover grid view. You can enable this view by clicking the "Layout" button in the bottom right corner of the main calibre window.</string>
|
||||||
<layout class="QFormLayout" name="formLayout_2">
|
|
||||||
<property name="fieldGrowthPolicy">
|
|
||||||
<enum>QFormLayout::ExpandingFieldsGrow</enum>
|
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0" colspan="2">
|
<property name="wordWrap">
|
||||||
<widget class="QLabel" name="label_19">
|
<bool>true</bool>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Control the Cover grid view. You can enable this view by clicking the "Layout" button in the bottom right corner of the main calibre window.</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="wordWrap">
|
<item row="3" column="1">
|
||||||
<bool>true</bool>
|
<spacer name="verticalSpacer_6">
|
||||||
</property>
|
<property name="orientation">
|
||||||
</widget>
|
<enum>Qt::Vertical</enum>
|
||||||
</item>
|
</property>
|
||||||
<item row="3" column="1">
|
<property name="sizeType">
|
||||||
<spacer name="verticalSpacer_6">
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
<property name="orientation">
|
</property>
|
||||||
<enum>Qt::Vertical</enum>
|
<property name="sizeHint" stdset="0">
|
||||||
</property>
|
<size>
|
||||||
<property name="sizeType">
|
<width>20</width>
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
<height>10</height>
|
||||||
</property>
|
</size>
|
||||||
<property name="sizeHint" stdset="0">
|
</property>
|
||||||
<size>
|
</spacer>
|
||||||
<width>20</width>
|
</item>
|
||||||
<height>10</height>
|
<item row="5" column="0">
|
||||||
</size>
|
<widget class="QLabel" name="label_14">
|
||||||
</property>
|
<property name="text">
|
||||||
</spacer>
|
<string>Field to show &under the covers:</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="5" column="0">
|
<property name="buddy">
|
||||||
<widget class="QLabel" name="label_14">
|
<cstring>opt_field_under_covers_in_grid</cstring>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Field to show &under the covers:</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="buddy">
|
<item row="5" column="1">
|
||||||
<cstring>opt_field_under_covers_in_grid</cstring>
|
<widget class="QComboBox" name="opt_field_under_covers_in_grid"/>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item row="6" column="0">
|
||||||
</item>
|
<widget class="QLabel" name="label_16">
|
||||||
<item row="5" column="1">
|
<property name="text">
|
||||||
<widget class="QComboBox" name="opt_field_under_covers_in_grid"/>
|
<string>Spac&ing between covers:</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="6" column="0">
|
<property name="buddy">
|
||||||
<widget class="QLabel" name="label_16">
|
<cstring>opt_cover_grid_spacing</cstring>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Spac&ing between covers:</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="buddy">
|
<item row="6" column="1">
|
||||||
<cstring>opt_cover_grid_spacing</cstring>
|
<widget class="QDoubleSpinBox" name="opt_cover_grid_spacing">
|
||||||
</property>
|
<property name="toolTip">
|
||||||
</widget>
|
<string>The spacing between covers. A value of zero means calculate automatically based on cover size.</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="6" column="1">
|
<property name="specialValueText">
|
||||||
<widget class="QDoubleSpinBox" name="opt_cover_grid_spacing">
|
<string>Automatic</string>
|
||||||
<property name="toolTip">
|
</property>
|
||||||
<string>The spacing between covers. A value of zero means calculate automatically based on cover size.</string>
|
<property name="suffix">
|
||||||
</property>
|
<string> cm</string>
|
||||||
<property name="specialValueText">
|
</property>
|
||||||
<string>Automatic</string>
|
<property name="decimals">
|
||||||
</property>
|
<number>2</number>
|
||||||
<property name="suffix">
|
</property>
|
||||||
<string> cm</string>
|
<property name="singleStep">
|
||||||
</property>
|
<double>0.100000000000000</double>
|
||||||
<property name="decimals">
|
</property>
|
||||||
<number>2</number>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="singleStep">
|
<item row="7" column="0" colspan="2">
|
||||||
<double>0.100000000000000</double>
|
<widget class="QGroupBox" name="cg_background_box">
|
||||||
</property>
|
<property name="title">
|
||||||
</widget>
|
<string>Background for the Cover grid</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="7" column="0" colspan="2">
|
<layout class="QGridLayout" name="gridLayout_5"/>
|
||||||
<widget class="QGroupBox" name="cg_background_box">
|
</widget>
|
||||||
<property name="title">
|
</item>
|
||||||
<string>Background for the Cover grid</string>
|
<item row="10" column="0" colspan="2">
|
||||||
</property>
|
<widget class="QGroupBox" name="groupBox_4">
|
||||||
<layout class="QGridLayout" name="gridLayout_5"/>
|
<property name="title">
|
||||||
</widget>
|
<string>Cover size</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="10" column="0" colspan="2">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<widget class="QGroupBox" name="groupBox_4">
|
<item row="1" column="2">
|
||||||
<property name="title">
|
<widget class="QPushButton" name="cover_grid_larger_cover">
|
||||||
<string>Cover size</string>
|
<property name="toolTip">
|
||||||
</property>
|
<string>Make the covers larger, maintaining current aspect ratio.</string>
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
</property>
|
||||||
<item row="1" column="2">
|
<property name="text">
|
||||||
<widget class="QPushButton" name="cover_grid_larger_cover">
|
<string>&Larger covers</string>
|
||||||
<property name="toolTip">
|
</property>
|
||||||
<string>Make the covers larger, maintaining current aspect ratio.</string>
|
<property name="icon">
|
||||||
</property>
|
<iconset resource="../../../../resources/images.qrc">
|
||||||
<property name="text">
|
<normaloff>:/images/plus.png</normaloff>:/images/plus.png</iconset>
|
||||||
<string>&Larger covers</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="icon">
|
</item>
|
||||||
<iconset resource="../../../../resources/images.qrc">
|
<item row="2" column="2">
|
||||||
<normaloff>:/images/plus.png</normaloff>:/images/plus.png</iconset>
|
<widget class="QPushButton" name="cover_grid_smaller_cover">
|
||||||
</property>
|
<property name="toolTip">
|
||||||
</widget>
|
<string>Make the covers smaller, maintaining current aspect ratio.</string>
|
||||||
</item>
|
</property>
|
||||||
<item row="2" column="2">
|
<property name="text">
|
||||||
<widget class="QPushButton" name="cover_grid_smaller_cover">
|
<string>&Smaller covers</string>
|
||||||
<property name="toolTip">
|
</property>
|
||||||
<string>Make the covers smaller, maintaining current aspect ratio.</string>
|
<property name="icon">
|
||||||
</property>
|
<iconset resource="../../../../resources/images.qrc">
|
||||||
<property name="text">
|
<normaloff>:/images/minus.png</normaloff>:/images/minus.png</iconset>
|
||||||
<string>&Smaller covers</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="icon">
|
</item>
|
||||||
<iconset resource="../../../../resources/images.qrc">
|
<item row="2" column="0">
|
||||||
<normaloff>:/images/minus.png</normaloff>:/images/minus.png</iconset>
|
<widget class="QLabel" name="label_12">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Cover &height: </string>
|
||||||
</item>
|
</property>
|
||||||
<item row="2" column="0">
|
<property name="buddy">
|
||||||
<widget class="QLabel" name="label_12">
|
<cstring>opt_cover_grid_height</cstring>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Cover &height: </string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="buddy">
|
<item row="1" column="0">
|
||||||
<cstring>opt_cover_grid_height</cstring>
|
<widget class="QLabel" name="label_11">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Cover &width: </string>
|
||||||
</item>
|
</property>
|
||||||
<item row="1" column="0">
|
<property name="buddy">
|
||||||
<widget class="QLabel" name="label_11">
|
<cstring>opt_cover_grid_width</cstring>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>Cover &width: </string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="buddy">
|
<item row="2" column="1">
|
||||||
<cstring>opt_cover_grid_width</cstring>
|
<widget class="QDoubleSpinBox" name="opt_cover_grid_height">
|
||||||
</property>
|
<property name="toolTip">
|
||||||
</widget>
|
<string>The height of displayed covers.
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QDoubleSpinBox" name="opt_cover_grid_height">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>The height of displayed covers.
|
|
||||||
Aue of zero means calculate automatically.</string>
|
Aue of zero means calculate automatically.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
<string>Automatic</string>
|
<string>Automatic</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> cm</string>
|
<string> cm</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="decimals">
|
<property name="decimals">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3" rowspan="2">
|
<item row="1" column="3" rowspan="2">
|
||||||
<widget class="QPushButton" name="cover_grid_reset_size">
|
<widget class="QPushButton" name="cover_grid_reset_size">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Reset size to automatic</string>
|
<string>Reset size to automatic</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Reset size</string>
|
<string>&Reset size</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="5">
|
<item row="3" column="0" colspan="5">
|
||||||
<widget class="QLabel" name="cover_grid_aspect_ratio">
|
<widget class="QLabel" name="cover_grid_aspect_ratio">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="4">
|
<item row="1" column="4">
|
||||||
<spacer name="horizontalSpacer_4">
|
<spacer name="horizontalSpacer_4">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QDoubleSpinBox" name="opt_cover_grid_width">
|
<widget class="QDoubleSpinBox" name="opt_cover_grid_width">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The width of displayed covers.
|
<string>The width of displayed covers.
|
||||||
Aue of zero means calculate automatically.</string>
|
Aue of zero means calculate automatically.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
<string>Automatic</string>
|
<string>Automatic</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> cm</string>
|
<string> cm</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="decimals">
|
<property name="decimals">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="5">
|
<item row="0" column="0" colspan="5">
|
||||||
<widget class="QLabel" name="cover_size_label">
|
<widget class="QLabel" name="cover_size_label">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>By default, calibre chooses a cover size based on your computer's screen size. You can change the cover size here:</string>
|
<string>By default, calibre chooses a cover size based on your computer's screen size. You can change the cover size here:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="1">
|
<item row="11" column="1">
|
||||||
<widget class="QSpinBox" name="opt_emblem_size">
|
<widget class="QSpinBox" name="opt_emblem_size">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> px</string>
|
<string> px</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>16</number>
|
<number>16</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="0">
|
<item row="11" column="0">
|
||||||
<widget class="QLabel" name="label_21">
|
<widget class="QLabel" name="label_21">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Size of the emblems (if any) shown &next to the covers: </string>
|
<string>Size of the emblems (if any) shown &next to the covers: </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_emblem_size</cstring>
|
<cstring>opt_emblem_size</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="2">
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="opt_cover_grid_show_title">
|
<widget class="QCheckBox" name="opt_cover_grid_show_title">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show a &field (such as title) under the covers</string>
|
<string>Show a &field (such as title) under the covers</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="0">
|
<item row="12" column="0">
|
||||||
<widget class="QLabel" name="label_22">
|
<widget class="QLabel" name="label_22">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Location of the emblems shown next to the covers:</string>
|
<string>&Location of the emblems shown next to the covers:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_emblem_position</cstring>
|
<cstring>opt_emblem_position</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="12" column="1">
|
<item row="12" column="1">
|
||||||
<widget class="QComboBox" name="opt_emblem_position"/>
|
<widget class="QComboBox" name="opt_emblem_position"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="emblems_tab">
|
<widget class="QWidget" name="emblems_tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>&Emblems</string>
|
<string>&Emblems</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_6">
|
<widget class="QWidget" name="tab_6">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>&Performance</string>
|
<string>&Performance</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_3">
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Caching of covers for improved performance</string>
|
<string>Caching of covers for improved performance</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0" colspan="5">
|
<item row="0" column="0" colspan="5">
|
||||||
<widget class="QLabel" name="label_13">
|
<widget class="QLabel" name="label_13">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>There are two kinds of caches that calibre uses to improve performance when rendering covers in the grid view. A disk cache that is kept on your hard disk and stores the cover thumbnails and an in memory cache used to ensure flicker free rendering of covers. For best results, keep the memory cache small and the disk cache large, unless you have a lot of extra RAM in your computer and don't mind it being used by the memory cache.</string>
|
<string>There are two kinds of caches that calibre uses to improve performance when rendering covers in the grid view. A disk cache that is kept on your hard disk and stores the cover thumbnails and an in memory cache used to ensure flicker free rendering of covers. For best results, keep the memory cache small and the disk cache large, unless you have a lot of extra RAM in your computer and don't mind it being used by the memory cache.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2">
|
<item row="2" column="2">
|
||||||
<widget class="QSpinBox" name="opt_cover_grid_disk_cache_size">
|
<widget class="QSpinBox" name="opt_cover_grid_disk_cache_size">
|
||||||
<property name="specialValueText">
|
<property name="specialValueText">
|
||||||
<string>Disable</string>
|
<string>Disable</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> MB</string>
|
<string> MB</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="singleStep">
|
<property name="singleStep">
|
||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0">
|
||||||
<widget class="QPushButton" name="cover_grid_empty_cache">
|
<widget class="QPushButton" name="cover_grid_empty_cache">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Empty disk cache</string>
|
<string>&Empty disk cache</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QPushButton" name="cover_grid_open_cache">
|
<widget class="QPushButton" name="cover_grid_open_cache">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Open cache folder</string>
|
<string>&Open cache folder</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="2" colspan="3">
|
<item row="4" column="2" colspan="3">
|
||||||
<spacer name="horizontalSpacer_3">
|
<spacer name="horizontalSpacer_3">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>310</width>
|
<width>310</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="5" column="1">
|
||||||
<spacer name="verticalSpacer_2">
|
<spacer name="verticalSpacer_2">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item row="1" column="3">
|
||||||
<spacer name="horizontalSpacer_5">
|
<spacer name="horizontalSpacer_5">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_15">
|
<widget class="QLabel" name="label_15">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Number of screenfulls of covers to cache in &memory (keep this small):</string>
|
<string>Number of screenfulls of covers to cache in &memory (keep this small):</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_cover_grid_cache_size_multiple</cstring>
|
<cstring>opt_cover_grid_cache_size_multiple</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="2" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="label_18">
|
<widget class="QLabel" name="label_18">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Maximum amount of &disk space to use for caching thumbnails: </string>
|
<string>Maximum amount of &disk space to use for caching thumbnails: </string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_cover_grid_disk_cache_size</cstring>
|
<cstring>opt_cover_grid_disk_cache_size</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<item row="1" column="2">
|
||||||
<widget class="QSpinBox" name="opt_cover_grid_cache_size_multiple">
|
<widget class="QSpinBox" name="opt_cover_grid_cache_size_multiple">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>The maximum number of screenfulls of thumbnails to keep in memory. Increasing this will make rendering faster, at the cost of more memory usage. Note that regardless of this setting, a minimum of one hundred thumbnails are always kept in memory, to ensure flicker free rendering.</string>
|
<string>The maximum number of screenfulls of thumbnails to keep in memory. Increasing this will make rendering faster, at the cost of more memory usage. Note that regardless of this setting, a minimum of one hundred thumbnails are always kept in memory, to ensure flicker free rendering.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<number>100</number>
|
<number>100</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="2">
|
<item row="3" column="2">
|
||||||
<widget class="QLabel" name="cover_grid_current_disk_cache">
|
<widget class="QLabel" name="cover_grid_current_disk_cache">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<resources>
|
<resources>
|
||||||
<include location="../../../../resources/images.qrc"/>
|
<include location="../../../../resources/images.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user