aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols/filesystemexplorer/FileSystemModule
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-16 09:50:29 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-09-17 10:52:17 +0200
commit2aca4661519bc4c97354cae4871f39a099d294a4 (patch)
tree7b74f872bd64f816e22df9c97a1f8e8f2ce81dc0 /examples/quickcontrols/filesystemexplorer/FileSystemModule
parentdf85d6027debb67562c1ad36147c997de6ff2bed (diff)
Update the filesystemexplorer example
Pick-to: 6.10 Task-number: PYSIDE-2206 Change-Id: Icc13acc679060bd3945f27e805ae00d40a16644f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Diffstat (limited to 'examples/quickcontrols/filesystemexplorer/FileSystemModule')
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml3
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/About.qml2
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Editor.qml1
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/ResizeButton.qml1
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Sidebar.qml2
-rw-r--r--examples/quickcontrols/filesystemexplorer/FileSystemModule/qmldir3
6 files changed, 8 insertions, 4 deletions
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml
index 7f7798ed8..36f2ac3b2 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/Main.qml
@@ -1,6 +1,5 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
import QtQuick
import QtQuick.Controls.Basic
import QtQuick.Layouts
@@ -22,7 +21,7 @@ ApplicationWindow {
visible: true
color: Colors.background
flags: Qt.Window | Qt.FramelessWindowHint
- title: qsTr("File System Explorer Example")
+ title: qsTr("File System Explorer")
function getInfoText() : string {
let out = root.currentFilePath
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/About.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/About.qml
index 178bf03e4..0d308a2a1 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/About.qml
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/About.qml
@@ -16,7 +16,7 @@ ApplicationWindow {
id: menuBar
dragWindow: root
- implicitHeight: 27
+ implicitHeight: 30
infoText: "About Qt"
}
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Editor.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Editor.qml
index 80f7c04c5..2f995c88c 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Editor.qml
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Editor.qml
@@ -36,6 +36,7 @@ Rectangle {
Layout.preferredWidth: fontMetrics.averageCharacterWidth
* (Math.floor(Math.log10(textArea.lineCount)) + 1) + 10
Layout.fillHeight: true
+ Layout.fillWidth: false
interactive: false
contentY: editorFlickable.contentY
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/ResizeButton.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/ResizeButton.qml
index 0df65bf82..5d3b68b35 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/ResizeButton.qml
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/ResizeButton.qml
@@ -1,6 +1,7 @@
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+import QtQml
import QtQuick.Controls
import FileSystemModule
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Sidebar.qml b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Sidebar.qml
index aac530394..f739e0f93 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Sidebar.qml
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qml/Sidebar.qml
@@ -50,6 +50,8 @@ Rectangle {
id: tabBarComponent
Layout.fillWidth: true
+ Layout.fillHeight: false
+
// ButtonGroup ensures that only one button can be checked at a time.
ButtonGroup {
buttons: tabBarComponent.contentChildren
diff --git a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qmldir b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qmldir
index b1f684600..f94e68a8a 100644
--- a/examples/quickcontrols/filesystemexplorer/FileSystemModule/qmldir
+++ b/examples/quickcontrols/filesystemexplorer/FileSystemModule/qmldir
@@ -1,8 +1,9 @@
module FileSystemModule
+
Main 1.0 Main.qml
About 1.0 qml/About.qml
-Editor 1.0 qml/Editor.qml
MyMenu 1.0 qml/MyMenu.qml
+Editor 1.0 qml/Editor.qml
Sidebar 1.0 qml/Sidebar.qml
MyMenuBar 1.0 qml/MyMenuBar.qml
singleton Colors 1.0 qml/Colors.qml