feat: optimize low configuration performance
This commit is contained in:
parent
4a7c5c3acc
commit
561b1ce0ac
2 changed files with 8 additions and 6 deletions
|
@ -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: {
|
||||
// 图标大小改变时需要重置状态,否则选中定位不准确
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue