Ghostkeeper
2a5abfdb01
Downgrade UM version, re-implementing scroll bar
...
This plug-in needs to be compatible with Cura 4.9 and up, which means we can't use UM.ScrollBar.
Contributes to issue CURA-8686.
2022-01-25 18:53:52 +01:00
Ghostkeeper
c6eb1e668d
Rename tableScrollView to tableBase
...
It is no longer a scrollview, after all, since the TableView itself already scrolls (and leaves the header nicely at the top this way).
Contributes to issue CURA-8686.
2022-01-25 18:51:03 +01:00
Ghostkeeper
a4ef86609f
Implement option to disable selections
...
Sometimes you don't want the user to be able to highlight certain rows.
Contributes to issue CURA-8686.
2022-01-25 18:48:06 +01:00
Ghostkeeper
6457410a53
Copy new Table implementation to Cura.TableView
...
There we can re-use it. We can't re-use that implementation from the Digital Library itself, since that plug-in needs to be compatible with older Cura versions as well.
Contributes to issue CURA-8686.
2022-01-25 18:37:34 +01:00
Ghostkeeper
39e29ae768
Fix QML warning of 0 height from before table is filled
...
If there is no model data, the cells will be empty and would have a height of 0. The table warns us that a height of 0 is not allowed.
Contributes to issue CURA-8686.
2022-01-25 18:34:04 +01:00
Ghostkeeper
2429f28b7f
Limit column widths to not exceed the total width of the table
...
A bit clunky, but very effective!
This way we don't have to deal with clipping or scrolling horizontally.
Contributes to issue CURA-8686.
2022-01-25 18:31:43 +01:00
Ghostkeeper
279c23f5aa
Elide header text too
...
Otherwise it just overlaps with the next column.
Contributes to issue CURA-8686.
2022-01-25 18:26:15 +01:00
Ghostkeeper
88bf1995c0
Fix cell height adjusting to content
...
To be honest, I'm not entirely sure why it only works here if I use implicitHeight instead of height.
Contributes to issue CURA-8686.
2022-01-25 18:22:38 +01:00
Ghostkeeper
bbb40d9b11
Allow double-clicking on a file to open it
...
Contributes to issue CURA-8686.
2022-01-25 18:19:08 +01:00
Ghostkeeper
59494cdace
Implement selection
...
Contributes to issue CURA-8686.
2022-01-25 18:03:45 +01:00
Ghostkeeper
5671b6c61f
Replace TableView with custom implementation
...
I intend to copy this implementation to mainline Cura when it's done.
Contributes to issue CURA-8686.
2022-01-25 17:51:48 +01:00