Commit Graph

4 Commits

Author SHA1 Message Date
Dennis Oberst eaaa8647da Filesystem Explorer: Add a minimum width and height
This prevents to reduce the window to a minimum of 1px (default), where
it gets hard to expand the window again. As a drive-by improve the
visualization of highlighted files.

Fixes: QTBUG-119785
Change-Id: Ib4a7f37fa4886589bad4cce534a9d73c352dd4ee
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-01-16 11:38:39 +01:00
Friedemann Kleint 4ba5c88d2d File system explorer example: Improve shortcuts
Use the standard keys for zoom and quit.

Pick-to: 6.6
Change-Id: I3659a5a84bc1e46938729710af31c834b8a50ed8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-11-01 22:30:45 +02:00
Dennis Oberst 959f88e4b5 Filesystem Explorer Example: Introduce version 2
This updated version addresses several bugs and misbehaviors that were
identified in the previous version. I have rewritten and improved
various aspects of the application to provide a more stable and reliable
user experience.
Here are some of the key changes and enhancements in version 2:

  - Fix qmllint warnings.
  - Reduce the number of redundant items
  - Apply the custom window decorations inside MyMenuBar
    to the contentItem instead of the background to scale
    properly.
  - Fix additional scaling and UI misbehaviors

  - Add an application icon
  - Add an editor with line numbers
  - Add command line options to specify an initial directory
  - Since rootIndex is exposed inside TreeView since 6.6
    this is an excellent opportunity to make use of it
  - Crosslink the python version of this example in the docs

Pick-to: 6.6
Change-Id: Ib816a95f843b3f4b84b11db893facda0ffc6f482
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-08-21 14:10:04 +02:00
Dennis Oberst 213e932e13 Add File System Explorer example
This example shows the customization of Qt Quick Controls by
implementing a simple file system explorer. Using a C++ model, entries
are visualized in a TreeView, and text files can be read.

Fixes: QTBUG-108289
Change-Id: I966dcf65e40d3b727889dc14c65edd0ffcc1b878
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
2023-02-14 13:32:13 +01:00