Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/package/contents/ui/FolderView.qml
Show First 20 Lines • Show All 766 Lines • ▼ Show 20 Line(s) | 765 | if (cachedRectangleSelection.length) { | |||
---|---|---|---|---|---|
767 | // cachedRectangleSelection is pre-sorted. | 767 | // cachedRectangleSelection is pre-sorted. | ||
768 | currentIndex = cachedRectangleSelection[0]; | 768 | currentIndex = cachedRectangleSelection[0]; | ||
769 | } | 769 | } | ||
770 | 770 | | |||
771 | dir.updateSelection(cachedRectangleSelection.map(positioner.map), | 771 | dir.updateSelection(cachedRectangleSelection.map(positioner.map), | ||
772 | gridView.ctrlPressed); | 772 | gridView.ctrlPressed); | ||
773 | } | 773 | } | ||
774 | 774 | | |||
775 | function makeIconSize() { | 775 | function makeIconSize() { | ||
ngraham: since makeIconSize() now does only one thing, we should probably just remove the function and… | |||||
776 | if (root.useListViewMode) { | 776 | // if (root.useListViewMode) { | ||
777 | return units.iconSizes.small; | 777 | // return units.iconSizes.small; | ||
778 | } | 778 | // } | ||
779 | 779 | | |||
780 | return FolderTools.iconSizeFromTheme(plasmoid.configuration.iconSize); | 780 | return FolderTools.iconSizeFromTheme(plasmoid.configuration.iconSize); | ||
781 | } | 781 | } | ||
782 | 782 | | |||
783 | function updateSelection(modifier) { | 783 | function updateSelection(modifier) { | ||
784 | if (modifier & Qt.ShiftModifier) { | 784 | if (modifier & Qt.ShiftModifier) { | ||
785 | positioner.setRangeSelected(anchorIndex, currentIndex); | 785 | positioner.setRangeSelected(anchorIndex, currentIndex); | ||
786 | } else { | 786 | } else { | ||
▲ Show 20 Lines • Show All 601 Lines • Show Last 20 Lines |
since makeIconSize() now does only one thing, we should probably just remove the function and instead just iconSize to FolderTools.iconSizeFromTheme(plasmoid.configuration.iconSize) on line 561.