feat: optimize low configuration performance

This commit is contained in:
reionwong 2022-03-28 15:35:48 +08:00
parent 4a7c5c3acc
commit 561b1ce0ac
2 changed files with 8 additions and 6 deletions

View file

@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import Cutefish.FileManager 1.0
import Cutefish.DragDrop 1.0 as DragDrop
@ -67,6 +67,7 @@ GridView {
signal keyPress(var event)
cacheBuffer: Math.max(0, control.height * 1.5)
reuseItems: true
onIconSizeChanged: {
//

View file

@ -16,9 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import FishUI 1.0 as FishUI
import Cutefish.FileManager 1.0
import Cutefish.DragDrop 1.0 as DragDrop
@ -55,6 +55,7 @@ ListView {
clip: true
cacheBuffer: width
reuseItems: true
ScrollBar.vertical: ScrollBar { }
boundsBehavior: Flickable.StopAtBounds