27 Commits

Author SHA1 Message Date
Erwan MATHIEU
3348c29278 Apply review suggestions
CURA-12439
2025-03-18 14:12:34 +01:00
Erwan MATHIEU
85eb90afbf Improve TableView manual column resizing
CURA-12439
2025-03-13 15:10:29 +01:00
c.lamboo
482d21c642 Fix for tooltip
Problem was that the mouse events were not properly propagated to the underlying mouse area. Fixed by placing the MouseArea on top of the content (instead of under) and allowing the mouse events to propagate through the mouse area.

CURA-9219
2022-05-11 17:23:54 +02:00
Jelle Spijker
981df9f928
Update resources/qml/TableView.qml
Co-authored-by: Ghostkeeper <Ghostkeeper@users.noreply.github.com>
2022-04-14 14:49:42 +02:00
j.delarago
4ec2edec67 Add replacement for QT.labs.models.TableModel
Implementation is intended to function the same as before.

CURA-8640
2022-04-05 15:03:45 +02:00
c.lamboo
4f70d34631 wip qt changes 2022-03-30 16:55:56 +02:00
Jaime van Kessel
25d2ed14dd Ensure contentWidth is calculated correctly
CURA-8948
2022-02-22 11:31:46 +01:00
Jaime van Kessel
a14c160d86 Expose flickable direction for TableView
CURA-8948
2022-02-22 11:28:33 +01:00
Jaime van Kessel
a458155258 Update look of the profilesPage
CURA-8949
2022-02-18 15:09:57 +01:00
Ghostkeeper
02c517a841
Enforce minimum column width through binding formula
We can't enforce it when resizing, due to the width rescaling with the width. But we can enforce it through the binding formula after applying the width scale.

Contributes to issue CURA-8686.
2022-02-01 13:04:16 +01:00
Ghostkeeper
8de1f923a4
Fix clicking, and don't allow dragging if not needed
When I changed the MouseArea into a TooltipArea, the clicking broke because the tooltip area doesn't catch mouse events. I could add another mouse area on top, but for better efficiency it's nice to re-use the TooltipArea. Just need to remember to allow clicking it.
I also found a small issue where you could flick the table even if it's not big enough to scroll. This should fix that.

Contributes to issue CURA-8686.
2022-02-01 11:54:43 +01:00
Ghostkeeper
7bc109d1f0
Remove outdated comment
It's no longer limiting the width to be at least 10 pixels, due to how it has to scale with the width of the table.

Contributes to issue CURA-8686.
2022-01-28 10:57:00 +01:00
Ghostkeeper
ec21b167d0
Resize columns when TableView is resized
They should retain their width proportionally.
This also fixes a case where the width of the TableView was initialised as 0 but then changed for some anchors due to weird bindings. Because it now updates the tableView when the width is changed.

Contributes to issue CURA-8686.
2022-01-26 16:29:09 +01:00
Ghostkeeper
fa177f5192
Implement section headers
I'm not real happy with the limitations I had to work with here. The TableView can only accept a table of strings, so I basically had to fit everything into editing this dictionary of strings. Not the best. But it's very effective.

Contributes to issue CURA-8686.
2022-01-26 15:37:17 +01:00
Ghostkeeper
5c71671585
Make setting names italic if changed in quality-changes profile
This was the behaviour before.

Contributes to issue CURA-8686.
2022-01-26 14:00:29 +01:00
Ghostkeeper
e607ae7b92
Show tooltip if text got elided
This way you can still see the whole text, even if the cell is too small. Handy.

Contributes to issue CURA-8686.
2022-01-26 11:24:41 +01:00
Ghostkeeper
f22fea5f22
Scroll back to top when contents of table change
Contributes to issue CURA-8686.
2022-01-25 19:05:54 +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
Jaime van Kessel
83be495414 Replace usage of controls label with our custom label
This prevents copy pasting a bunch of parameters that we set by default
2021-11-10 16:37:26 +01:00
Konstantinos Karmas
504f6dbe70
Revert "Cura 7813 qml modules version bump" 2021-03-30 09:48:28 +02:00
jelle Spijker
2986d50745
Update QtQuick and QtQuick.Controls
CURA-7813
2021-03-29 17:55:19 +02:00
Kostas Karmas
547698cffc Change TableView row color and text color when the row is selected
CURA-8066
2021-03-12 17:30:17 +01:00
Kostas Karmas
606ec587fe Change the row height in the table view
CURA-7868
2021-01-06 11:51:29 +01:00
Kostas Karmas
adcdf7bad9 Remove unnecessary QML imports
CURA-7868
2021-01-05 14:54:28 +01:00
Kostas Karmas
dc02038513 Add a Cura-themed, re-usable TableView component
CURA-7868
2021-01-05 14:47:46 +01:00