1/**************************************************************************
2 **                                                                      **
3 ** Copyright (C) 2018 Lukas Spies                                       **
4 ** Contact: http://photoqt.org                                          **
5 **                                                                      **
6 ** This file is part of PhotoQt.                                        **
7 **                                                                      **
8 ** PhotoQt is free software: you can redistribute it and/or modify      **
9 ** it under the terms of the GNU General Public License as published by **
10 ** the Free Software Foundation, either version 2 of the License, or    **
11 ** (at your option) any later version.                                  **
12 **                                                                      **
13 ** PhotoQt is distributed in the hope that it will be useful,           **
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of       **
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        **
16 ** GNU General Public License for more details.                         **
17 **                                                                      **
18 ** You should have received a copy of the GNU General Public License    **
19 ** along with PhotoQt. If not, see <http://www.gnu.org/licenses/>.      **
20 **                                                                      **
21 **************************************************************************/
22
23import QtQuick 2.5
24import QtQuick.Controls 1.4
25
26import "../../../elements"
27import "../../"
28
29EntryContainer {
30
31    id: item_top
32
33    Row {
34
35        spacing: 20
36
37        EntryTitle {
38
39            title: em.pty+qsTr("Disable thumbnails")
40            helptext: em.pty+qsTr("If you just don't need or don't want any thumbnails whatsoever, then you can disable them here completely. This will increase the speed of PhotoQt, but will make navigating with the mouse harder.")
41
42        }
43
44        EntrySetting {
45
46            id: entry
47
48            CustomCheckBox {
49
50                id: disable
51                text: em.pty+qsTr("Disable Thumbnails altogether")
52
53            }
54
55        }
56
57    }
58
59    function setData() {
60        disable.checkedButton = settings.thumbnailDisable
61    }
62
63    function saveData() {
64        settings.thumbnailDisable = disable.checkedButton
65    }
66
67}
68