5901 Commits

Author SHA1 Message Date
Jaime van Kessel
0213a3833c Fix the tooltip not re-sizing
I'm not entirely sure if this fixes it on windows, but it does at least fix things on Linux.

There are a few important changes to note here:
1. Increased the time of the fade timer to 200ms
2. Removed the mousearea, instead using the hover of scrollview

So why are these important? Nr 1 seems to be because updates seem to be faster? If I set it to 100
I could get it to work reasonably well on qt5, but in qt6, it's about 50% of the times that i'm too slow.
So we need the extra time.

As for the mouse area, it seems that the scrollview was eating up all the hover / containsMouse events.
As scrollview has the same properties that we need, we can just get rid of the mouseArea

CURA-9112
2022-04-26 10:50:29 +02:00
Ghostkeeper
5b6a6aa497
Update dependencies used by Cura
Took a while, but this should be an up-to-date list.

Contributes to issue CURA-9121.
2022-04-25 12:18:19 +02:00
Ghostkeeper
6ce6412580
Update list of projects that can be updated without string freeze break
Just this one, I'm afraid.

Contributes to issue CURA-9121.
2022-04-25 11:14:13 +02:00
fieldOfView
fcad2101f4 Fix creating a single copy of a model
Fixes #11897
2022-04-23 10:50:27 +02:00
fieldOfView
b622738ae3 Fix missing icons since move to PyQt6 2022-04-22 22:33:14 +02:00
j.delarago
e5c2f5702c Subtract previously unused rightMargin from MachineSelectorButton width.
CURA-9143
2022-04-21 15:04:52 +02:00
Ghostkeeper
9389a6f4e8
Merge branch 'CURA-9146_account_sync' into 5.0 2022-04-21 14:04:27 +02:00
Remco Burema
38d62b73c5 Mostly? fix scrollbars in settings-tooltips.
CURA-9112
2022-04-21 14:02:29 +02:00
Ghostkeeper
1e7cf21f46
Merge branch '5.0' into CURA-9146_account_sync 2022-04-21 13:18:49 +02:00
Jaime van Kessel
8383983ff4 Merge branch 'CURA-9070_dont_lose_focus_search_field' of github.com:Ultimaker/Cura into 5.0 2022-04-21 13:11:50 +02:00
Remco Burema
8afb06f7ae Fix infill to 0% on upgrade to Cura 5.0.
This is a weird one, fortunately Jaime had the idea that it had to do with a spurious update to the visual element of the slider.

CURA-9127
2022-04-21 11:55:42 +02:00
c.lamboo
9a3d089bd9 Properly add and remove menu items
Not really part of the ticket but logging was complaining

CURA-9146
2022-04-21 11:34:16 +02:00
c.lamboo
66fde9100c Use QML defined enum in sync state
These are the enums from cura/API/account.py
somehow exposing these enums from python to QML doesn't work properly anymore
A better solution should be found in the very near future

CURA-9146
2022-04-21 11:32:03 +02:00
Ghostkeeper
3f9c7c55dc
Fix search field losing focus when scrolling the setting list
When scrolling the setting list, it was clearing the focus in order to close the pop-ups in the setting list. If pop-ups like for the infill pattern or extruder selection settings are not closed, the pop-up part is still rendered even if the user scrolls those settings out of view, causing the pop-up to appear somewhere on top of completely unrelated interface elements. It scrolls all the way to the top of the screen, effectively.

I couldn't find a way to cause pop-ups to be clipped with the rest of the contents of the ListView. They are always rendered on top due to the nature of the pop-up. I could find a way to trigger pop-ups to close upon changing the scrolled position without changing the focus, but that method was fairly complex with a bunch of `Connection`s and an extra signal. This is by far the simplest solution.

Contributes to issue CURA-9070.
2022-04-21 11:17:13 +02:00
Remco Burema
c002a52b50 Remove animations from custom settings view.
They never properly worked anyway, and now they cause the items to overlap.

CURA-9160
2022-04-21 11:11:28 +02:00
Jaime van Kessel
271868eafd Fix export material to usb
CURA-9122
2022-04-20 11:23:35 +02:00
Jaime van Kessel
e85420f9fa Fix few more instances of old usage of fileUrl vs selectedFile 2022-04-19 17:12:58 +02:00
Jaime van Kessel
f070a695b1 Change standardbutton.yes & no to dialog.yes & no 2022-04-19 17:10:51 +02:00
Jaime van Kessel
1ce84fec69 Fix all import dialogs
Fixes CURA-9129
2022-04-19 17:09:02 +02:00
Jaime van Kessel
965ecb744d Fix size of print setup selector
CURA-9139
2022-04-19 16:42:43 +02:00
Jaime van Kessel
fc03d6dfd8 No longer inject close argument
Fixes warning in the log
2022-04-19 15:08:45 +02:00
Jaime van Kessel
5a62278097 Fix display of username
CURA-9146
2022-04-15 10:16:00 +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
Jaime van Kessel
25839c6d97 Fix direction of pointing rectangle
Turns out that using anchors doesn't quite work anymore due to qt6 upgrade. Oh well!
CURA-9137
2022-04-13 17:36:47 +02:00
Jaime van Kessel
a6db27dd55 Prevent tootltip from showing during "processing" of slice button
CURA-9150
2022-04-13 16:29:25 +02:00
j.spijker@ultimaker.com
cb9b5961c3
Removed last remnants of RecolorImage
This was still being used in the MaterialBrandsMenu and the SimpleButton
Probably why the X es were missing from the info messages. CURA-9110

Contributes to CURA-8640
2022-04-13 12:40:54 +02:00
Ghostkeeper
6f83927ec3
Merge branch 'qt6_beyond_the_splash' of github.com:Ultimaker/Cura into qt6_beyond_the_splash 2022-04-12 14:11:36 +02:00
j.delarago
3674af01b7 selectExisting is replaced with using fileMode:FileDialog.OpenFile in QT6. This forces selecting an existing file.
This is also the default value in QT6 so this line can be removed without changing the functionality
2022-04-12 10:21:34 +02:00
j.delarago
94e5a4e1db Masking is not avaliable after the QT6 upgrade, this does a kind of primitive masking by placing a rectangle with a circular hole in it over the image.
CURA-9104
2022-04-11 14:10:27 +02:00
j.delarago
c4baece3ac Remove reference to nonexistent property source size in UM.ColorImage which was causing add printer page to be empty
CURA-9098
2022-04-11 09:52:33 +02:00
Ghostkeeper
90a3b4cde6
Use 250ms delay everywhere
This looks like it's consistent with the normal menus. And it fixes the issue where multiple menus can be shown at once because it would hide slower than show the next one.

Contributes to issue CURA-8640.
2022-04-08 17:02:52 +02:00
Ghostkeeper
af33073b29
Properly limit width of text in subsubmenu
Getting rid of the layout makes a lot of things simpler here.

Contributes to issue CURA-8640.
2022-04-08 17:02:52 +02:00
j.delarago
d46679c19f Fix popups closing on selecting a material bug
CURA-8640
2022-04-08 16:44:13 +02:00
Ghostkeeper
e7de7bb3cc
Add a checkmark to indicate the selected material
As it used to have.

Contributes to issue CURA-8640.
2022-04-08 16:35:54 +02:00
Ghostkeeper
5a76cd1615
Select material from menu when user clicks on it
The main function of the menu, after all.

Contributes to issue CURA-8640.
2022-04-08 16:35:54 +02:00
j.delarago
5df5d6c37d Fix popup alignment
CURA-8640
2022-04-08 16:34:59 +02:00
j.delarago
938ff691c4 Add arrows in submenus
CURA-8640
2022-04-08 16:29:24 +02:00
Jaime van Kessel
d94ef39cba Fix warnings for extruder icon 2022-04-08 16:08:24 +02:00
Ghostkeeper
7aafd95429
Implement sub-submenus for material selection
Getting a bit complex with the timers there and which pop-ups need to stay open. But it seems to be working reliably now.

Contributes to issue CURA-8640.
2022-04-08 15:57:42 +02:00
Ghostkeeper
b40900e146
Fix layout of subitems
Contributes to issue CURA-8640.
2022-04-08 15:57:42 +02:00
c.lamboo
45bc498c7f Replace RecolorImage with ColorImage
CURA-8640
2022-04-08 15:55:34 +02:00
Ghostkeeper
3de824e1a4
Show submenu with material types
It's quite a hassle to get it to keep displaying...

Contributes to issue CURA-8640.
2022-04-08 14:58:39 +02:00
Ghostkeeper
11b557b3d9
Replace material sub-menus with custom Popup
The sub-menus were giving segfaults for some reason. We couldn't figure out how to circumvent that. So now we're at a last resort: Implement the whole thing ourselves, but with Popup instead of Menu.

Contributes to issue CURA-8640.
2022-04-08 11:57:19 +02:00
j.delarago
6bb4f52b27 Fix crash on slicing.
A Component with 0 width and height does not load values from registered Objects correctly.

This 0 width/height was caused by a binding loop for height in the contentItem.

CURA-8640
2022-04-06 17:22:17 +02:00
Jaime van Kessel
ef6f76fc98 Fix parameter injection deprecation warning 2022-04-06 11:24:17 +02:00
Jaime van Kessel
1158856f80 Merge branch 'qt6_beyond_the_splash' of github.com:Ultimaker/Cura into qt6_beyond_the_splash 2022-04-06 11:21:01 +02:00
Jaime van Kessel
b2eec5f0d9 Fix height for swatch in extruder settings 2022-04-06 11:19:20 +02:00
j.delarago
00c7c37b34 LinearGradient is not available for 2d shapes in QT6
Replace LinearGradient with Gradient in preview color scheme drop down

CURA-8640
2022-04-06 10:50:33 +02:00
j.delarago
62c1e37e04 Fix button heights
CURA-8640
2022-04-05 17:25:19 +02:00
j.delarago
53efb78cf6 Fix combobox and label heights in general page
CURA-8640
2022-04-05 17:22:57 +02:00