29052 Commits

Author SHA1 Message Date
Ghostkeeper
0deac84ec2
NetworkError is an enum, no longer comparable as int
With the Qt6 upgrade, we have to treat enums as full enums, within their normal class namespace and such. They are no longer just integer-globals static in the QtCore.Qt class. They are no longer treated as integers by PyQt.
Other places that checked for such errors were already doing it like this.

Contributes to issue CURA-9100.
2022-04-11 10:00:32 +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
Jelle Spijker
fb22a04d4d Add search path for the pyinstaller locations
Contributes to CURA-8640
2022-04-08 20:34:42 +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
Jelle Spijker
4abdd675f6
Merge branch 'master' into qt6_beyond_the_splash 2022-04-08 10:26:12 +02:00
Jaime van Kessel
efc5438090 Remove unneeded clear 2022-04-08 09:16:22 +02:00
Jaime van Kessel
9e4798c98b Set ownership of MaterialBrandsModel to cpp
This hopefully prevents the crash for MacOS
2022-04-07 20:10:58 +02:00
Jaime van Kessel
262520f193 Remove setting parent from basematerial 2022-04-07 18:05:27 +02:00
Ghostkeeper
855eaec81c
Scale convex hull only by X/Y shrinkage, and handle 0% gracefully
Only the X/Y shrinkage influences the convex hull collision area. Not the Z, nor the parent setting.

Also, don't scale the collision area to 0. This value is not allowed by the setting system, so it'd indicate an error when slicing, but before slicing the convex hull gets calculated which results in degenerate polygons. Don't do that. Instead, we'll just let it pretend the scale factor is 1.

Contributes to issue CURA-9091.
2022-04-07 14:17:56 +02:00
Casper Lamboo
dec359da1d
Merge pull request #11641 from Ultimaker/PP-129_increase-filter-distance
increase filter distance
2022-04-07 13:59:56 +02:00
Casper Lamboo
c4748ba332
Merge branch 'master' into PP-129_increase-filter-distance 2022-04-07 13:54:27 +02:00
Casper Lamboo
00fcd9d006
Merge pull request #11725 from Ultimaker/feat_transition_filter_limit
Feat/Fix: transition filter limit
2022-04-07 13:52:29 +02:00
Jelle Spijker
455c163b60 Merge branch 'master' into qt6_beyond_the_splash 2022-04-07 12:01:17 +02:00
Joey de l'Arago
defe2ad39c
Merge pull request #11774 from Ultimaker/PP-54_decrease-resolution
Pp 54 decrease resolution
2022-04-07 10:16:16 +01:00
j.delarago
b7ad18d149 Merge branch 'master' into PP-54_decrease-resolution
# Conflicts:
#	resources/definitions/ultimaker.def.json
#	resources/quality/ultimaker_s3/um_s3_aa0.8_CPE_Superdraft_Print.inst.cfg
#	resources/quality/ultimaker_s3/um_s3_aa0.8_PETG_Superdraft_Print.inst.cfg
#	resources/quality/ultimaker_s5/um_s5_aa0.8_CPE_Superdraft_Print.inst.cfg
#	resources/quality/ultimaker_s5/um_s5_aa0.8_PETG_Superdraft_Print.inst.cfg
2022-04-07 11:14:30 +02:00
Jaime van Kessel
706c32706b
Merge pull request #11767 from Ultimaker/PP-115_improve-default-linewidths
Pp 115 improve default linewidths
2022-04-07 11:09:55 +02:00
Jaime van Kessel
0cb5a147ed
Merge pull request #11776 from Ultimaker/PP-154_adjust_horizontal_expansion
Reduced horizontal expansion offset to the theoretically correct valu…
2022-04-07 10:49:39 +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
j.delarago
b2b1961b57 Merge branch 'master' into qt6_beyond_the_splash
# Conflicts:
#	cura/PrinterOutput/PrinterOutputDevice.py
2022-04-06 15:24:30 +02:00
p.kuiper
e24d2d15ae Reduced horizontal expansion offset to the theoretically correct value of 0.1*layer_height if the correction is performed on both sides of the wall (then totals 0.2*layer_height).
Relates to PP-154
2022-04-06 13:56:28 +02:00
p.kuiper
0a8ef5162e Removed the rather hacky implementation of the shrinkage factor averaging. Issues with dual extrusion were the second extruder is not used should solved in a different way.
Relates to PP-77
2022-04-06 13:28:55 +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
Jaime van Kessel
c88ed076a1 Fix resolving of URL's 2022-04-06 09:57:45 +02:00
Jaime van Kessel
605280255f Use right enum for alignment 2022-04-06 09:53:48 +02:00
Jaime van Kessel
3c6412d5d7 FIx deprecation warning 2022-04-06 09:53:27 +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
j.delarago
f57c30fb42 Merge remote-tracking branch 'origin/qt6_beyond_the_splash' into qt6_beyond_the_splash 2022-04-05 16:10:51 +02:00
j.delarago
2ffcfafc77 Some place RegularExpressionValidator can't be found in QtQuick 2.10 but can be in 2.15 so all files using RegularExpressionValidator have been bumped to latest QtQuick
CURA-8640
2022-04-05 16:10:39 +02:00
Jaime van Kessel
fa2ebf3e38 Merge branch 'qt6_beyond_the_splash' of github.com:Ultimaker/Cura into qt6_beyond_the_splash 2022-04-05 16:03:58 +02:00
Jaime van Kessel
9812dade44 Fix drag & drop 2022-04-05 16:03:47 +02:00
j.delarago
aa190024d4 Update enum, this fixes connecting to printers
CURA-8640
2022-04-05 16:01:17 +02:00
j.delarago
6d2293db08 Remove unused Table in DigitalLibary Plugin
CURA-8640
2022-04-05 15:55:45 +02:00
j.delarago
fd07de9b11 Update DiscardOrKeepProfileChangesDialog.qml TableModel
CURA-8640
2022-04-05 15:53:56 +02:00
j.delarago
e86f860a2c Update TableView and TableModel in DigitalLibrary plugin.
This is not backwards compatible with Cura < 5.0 due to the removal of Qt.labs

CURA-8640
2022-04-05 15:47:08 +02:00