Lipu Fei
2ce567ccfe
Fix material current item reset
...
CURA-6679
2019-07-30 15:16:50 +02:00
Jaime van Kessel
914d2e98e9
Fix the disabling of the material setting fields.
...
This was caused by using 2 different modelsItems.
2019-07-30 11:29:49 +02:00
Ghostkeeper
18d1148c78
Don't reset selected material upon container changed
...
The onActiveMaterialChanged signal is triggered upon loading a material for the first time. This is hard to fix without breaking stuff, so we will revert this part.
This re-introduces a bug where if you change a material diameter such that the material disappears from the list, it is still selected and you can change its properties in the details panel.
Contributes to issue CURA-6679.
2019-07-24 17:01:37 +02:00
Ghostkeeper
be4e754984
Remove cache of material manager
...
It doesn't make the code much simpler because the cache is also not a local variable.
Contributes to issue CURA-6679.
2019-07-24 16:04:40 +02:00
Lipu Fei
3d410cceb9
Fix change material diameter binding
...
CURA-6590
2019-07-08 13:40:08 +02:00
Lipu Fei
b36d040ba9
Use rejected instead of visibility hack
...
CURA-6590
2019-07-08 13:01:42 +02:00
Remco Burema
fea8262656
Listen to 'material-changed' since it doesn't update immediately.
...
part of CURA-6590
2019-07-03 16:14:08 +02:00
Jaime van Kessel
2cd6b73d12
Ensure that the material selection gets reset when diameter is changed
...
CURA-6590
2019-07-02 17:59:27 +02:00
Jaime van Kessel
ff0a18603b
Remove a few more usages of deprecated functions
2019-05-16 15:20:38 +02:00
Jaime van Kessel
99e6ec9509
Fix the last material qml warnings
2019-05-16 14:29:05 +02:00
Jaime van Kessel
bfe1275d46
Fix a number of QML warnings
2019-05-16 14:23:09 +02:00
Ghostkeeper
dfeb71992a
Remove custom text property in materials brand section
...
It was duplicating the sectionName property.
Contributes to issue CURA-6302.
2019-05-07 14:27:39 +02:00
Satish
3b4e253e98
Added ids to materials for squish tests
...
-Added a text property to MaterialsBrandSection
-Added ids to materials menu buttons
2019-05-07 12:37:42 +02:00
Jaime van Kessel
c3a373e2a2
Remove usages of deprecated activeMachineName
2019-05-03 13:38:06 +02:00
Jaime van Kessel
d42f446d70
Remove usages of deprecated function
2019-05-03 13:17:10 +02:00
Ghostkeeper
c79ffab9fb
Merge branch '4.0'
2019-03-18 11:24:23 +01:00
Jaime van Kessel
8b3290fb1e
Prevent the deletion of materials that are still active
2019-03-14 10:50:53 +01:00
Satish
c98a73f8fd
Added id's to printer button, installed plugins, material fields and profile tab for integration tests
2019-03-01 12:47:29 +01:00
Jaime van Kessel
a51289d7ce
Merge branch 'not_activate_when_no_materials' of github.com:Ultimaker/Cura
2019-01-18 11:19:28 +01:00
Remco Burema
f057c9a7df
Prevent spurious updates to 'onPreferenceChanged's if the preference doesn't match.
2019-01-15 17:15:12 +01:00
Ghostkeeper
b54312fb9b
Merge branch '4.0' into unify_font_types
2018-12-28 15:51:54 +01:00
Ghostkeeper
abe684c1bd
Use Item instead of rectangle without defined colour
...
Item should be faster to render.
Contributes to issue CURA-6056.
2018-12-27 13:36:17 +01:00
Ghostkeeper
5bf260f524
Don't break binding of is_favorite upon clicking star
...
We shouldn't override it here because doing that causes the binding to break. Just remove the favourite and let the model update itself, thus removing the star.
Contributes to issue CURA-6032.
2018-12-20 14:40:37 +01:00
Ghostkeeper
f3a0b44d5e
Simplify is_favorite condition
...
No stupid ternary operators necessary.
Contributes to issue CURA-6032.
2018-12-20 14:40:29 +01:00
Diego Prado Gesto
ef2fb53790
Merge branch '4.0' into unify_font_types
2018-12-19 11:56:22 +01:00
Ghostkeeper
c0c45519a0
Change another useless rectangle into an item
...
It's more efficient to render. Also changed some code style.
Contributes to issue CURA-6032.
2018-12-18 16:49:41 +01:00
Ghostkeeper
c66257bf4d
Use item instead of transparent rectangle
...
This is faster to render.
Contributes to issue CURA-6032.
2018-12-18 16:18:01 +01:00
Diego Prado Gesto
77ede1ae6b
Unify the fonts to only have 8 instead of 13.
...
Contributes to CURA-6025.
2018-12-12 17:50:21 +01:00
Ghostkeeper
4d87c46423
Remove sourceSize.width: width from all RecolorImages
...
It is now the default in Uranium.
Contributes to issue CURA-5876.
2018-12-04 15:04:51 +01:00
Ghostkeeper
f3af5a72ad
Use ListModel.count instead of rowCount
...
The .count property properly updates when the model is changed.
Contributes to issue CURA-5876.
2018-12-03 11:13:26 +01:00
Diego Prado Gesto
fa39ba9132
Fix typo. Remove parenthesis.
2018-11-19 16:37:12 +01:00
Diego Prado Gesto
df38e7db85
Do not allow the user to activate a material if the printer is not
...
defined to have materials.
Contributes to #4550 .
2018-11-19 16:31:15 +01:00
Jaime van Kessel
d1a51b26f7
Simplified QML expression
2018-10-08 17:22:04 +02:00
Aleksei S
51e7b6c388
Change font style for active material in preferences
...
CURA-5747
2018-10-03 10:30:48 +02:00
Lipu Fei
8837ffc06d
Fix mateial management QML reference
...
CURA-5682
2018-09-25 11:52:53 +02:00
Aleksei S
b44fb7ca24
Select correct material according to the active extruder
...
CURA-5682
2018-09-21 17:35:46 +02:00
Aleksei S
86d8f8517d
In material page was not defined the used extruder nr, for generic materials
...
CURA-5682
2018-09-21 13:48:46 +02:00
Diego Prado Gesto
6c9c68e004
Active the focus when the selected item changes.
...
In this case, if the user was updating some information in one material
and then select other material, the new data is stored.
Contributes to CURA-5682.
2018-09-17 14:41:45 +02:00
Diego Prado Gesto
bafc2b98c9
Reuse MaterialBrandSection component for Favorites, Generic and branded
...
materials.
This component will show different children depending on the
hasMaterialTypes flag.
Adjust some small UI issues.
Contributes to CURA-5682.
2018-09-17 12:08:41 +02:00
Diego Prado Gesto
f871a89825
Clean up the code by removing duplicate code. Also try to unify the
...
MaterialsBrandSection to use the same component for favorites, generic
and branded materials.
Contributes to CURA-5682.
2018-09-17 09:09:14 +02:00
Diego Prado Gesto
972f0bef43
WIP Fix an error in which the current selected material was not
...
correctly selected when there is more than one brand (stupid mistake).
Also fix problems when the user changes some material information.
Contributes to CURA-5682.
2018-09-14 10:54:07 +02:00
Diego Prado Gesto
6dc53cc60a
Select the next selected material when it is activated or removed.
...
Contributes to CURA-5682.
2018-09-12 18:39:19 +02:00
Diego Prado Gesto
3368428dbb
Fix text field alignment.
...
The color text field was too short in many cases, when the color name is
long.
Contributes to CURA-5682.
2018-09-12 16:57:43 +02:00
Diego Prado Gesto
e3f67f1147
Fix code style.
...
Contributes to CURA-5682.
2018-09-12 16:37:16 +02:00
Diego Prado Gesto
6183a07d76
Activate the material right after it was created or duplicated.
...
Contributes to CURA-5682.
2018-09-12 16:35:01 +02:00
Diego Prado Gesto
921b11974c
Improve the way the categories are highlighted.
...
When a material is selected, but the brand or the type is collapsed,
those components are also highlighted to indicate the path to the
material.
Reuse the MaterialBrandSection also for the generic materials, that
allow us to only mantain one component.
Contributes to CURA-5682.
2018-09-12 15:42:02 +02:00
Diego Prado Gesto
56dcc2dded
Highlight the material that is currently selected.
...
Contributes to CURA-5682.
2018-09-12 14:09:29 +02:00
Diego Prado Gesto
f298d37134
WIP: Moving current selected material to the material list instead of
...
the page.
Change all the previous references to the currentItem in the page.
Automatically and correctly select the element that is selected in the
extruder.
Contributes to CURA-5682.
2018-09-11 22:12:54 +02:00
Diego Prado Gesto
9ba4c723f7
Fix the linked materials button.
...
Contributes to CURA-5682.
2018-09-11 22:07:14 +02:00
Diego Prado Gesto
fe256b3562
Fix some issues in the material preference page.
...
Now the generic section collapses and expands correctly. Some qml error
was also fixed.
Contributes to CURA-5682.
2018-09-10 15:57:19 +02:00