filedialog: add scrollbar
This commit is contained in:
parent
0b520dc28b
commit
f4e9136aee
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import Quickshell.Widgets
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import QtQuick.Effects
|
import QtQuick.Effects
|
||||||
|
import QtQuick.Controls
|
||||||
import Qt.labs.folderlistmodel
|
import Qt.labs.folderlistmodel
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -91,6 +92,8 @@ Item {
|
||||||
root.dialog.accepted(currentItem.filePath);
|
root.dialog.accepted(currentItem.filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollBar.vertical: StyledScrollBar {}
|
||||||
|
|
||||||
model: FolderListModel {
|
model: FolderListModel {
|
||||||
showDirsFirst: true
|
showDirsFirst: true
|
||||||
folder: {
|
folder: {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue