Commit Graph

2 Commits

Author SHA1 Message Date
Fabian Kosmale 728028280a spreadsheets example: Fix warnings (and code)
- Use qualified lookups
- Set the ComponentBehavior pragma where needed
- There's no implicitRowWidth, use implicitRowHeight
- Query styleHints from Application, where it has the correct type,
  instead of from the global Qt object, where it's only known as QObject
  (as it needs to provide something even when QtQuick is not available)
- Remove unused import

Pick-to: 6.10
Change-Id: Ia4ff94aa8f66754d0a374ade7ff6c8cad4329530
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
2025-07-18 09:00:30 +02:00
MohammadHossein Qanbari 74fef51927 Spreadsheets Example: Separate HeaderViews and TapHandlers as types
The Main.qml file was growing larger due to modifications in header
views. To prevent this, the header views have been separated into
ColumnHeaderView and RowHeaderView QML module types.

Similar to the header views, the tap handlers have been separated into
a QML module type to maintain consistent behavior for header views.

Additionally, the mouse tap handlers have been merged into a single
tap handler to manage mouse events with different combinations of
buttons and modifiers.

Task-number: QTBUG-125767
Pick-to: 6.8
Change-Id: Ib465b8b631cb8fe2aeeaaea229e2c4985619d2e9
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
2024-07-10 13:37:32 +02:00