mirror of https://github.com/qt/qtgraphs.git
Remove unnecessary valueRolePattern & Replace
We're using only one of the values, so they are not needed.
Task-number: QTBUG-131427
Change-Id: If39b252c5e63f56b286a9d98ce71856035a67cca
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
(cherry picked from commit 46e57e565d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
20e90d2228
commit
18b3bbb8f1
|
|
@ -31,26 +31,24 @@ Item {
|
|||
ItemModelBarDataProxy {
|
||||
id: barProxy
|
||||
itemModel: ListModel {
|
||||
ListElement{ coords: "0,0"; data: "20.0/10.0/4.75"; }
|
||||
ListElement{ coords: "1,0"; data: "21.1/10.3/3.00"; }
|
||||
ListElement{ coords: "0,1"; data: "20.2/11.2/3.55"; }
|
||||
ListElement{ coords: "1,1"; data: "21.3/11.5/3.03"; }
|
||||
ListElement{ coords: "0,2"; data: "20.2/12.3/3.37"; }
|
||||
ListElement{ coords: "1,2"; data: "21.1/12.4/2.98"; }
|
||||
ListElement{ coords: "0,3"; data: "20.7/13.3/5.34"; }
|
||||
ListElement{ coords: "1,3"; data: "21.5/13.2/4.54"; }
|
||||
ListElement{ coords: "0,4"; data: "20.6/15.0/6.01"; }
|
||||
ListElement{ coords: "1,4"; data: "21.3/14.6/5.83"; }
|
||||
ListElement{ coords: "0,0"; data: "4.75"; }
|
||||
ListElement{ coords: "1,0"; data: "3.00"; }
|
||||
ListElement{ coords: "0,1"; data: "3.55"; }
|
||||
ListElement{ coords: "1,1"; data: "3.03"; }
|
||||
ListElement{ coords: "0,2"; data: "3.37"; }
|
||||
ListElement{ coords: "1,2"; data: "2.98"; }
|
||||
ListElement{ coords: "0,3"; data: "5.34"; }
|
||||
ListElement{ coords: "1,3"; data: "4.54"; }
|
||||
ListElement{ coords: "0,4"; data: "6.01"; }
|
||||
ListElement{ coords: "1,4"; data: "5.83"; }
|
||||
}
|
||||
rowRole: "coords"
|
||||
columnRole: "coords"
|
||||
valueRole: "data"
|
||||
rowRolePattern: /(\d),\d/
|
||||
rowRolePattern: /(\d),(\d)/
|
||||
columnRolePattern: /(\d),(\d)/
|
||||
valueRolePattern: /^([^\/]*)\/([^\/]*)\/(.*)$/
|
||||
rowRoleReplace: "\\1"
|
||||
columnRoleReplace: "\\2"
|
||||
valueRoleReplace: "\\3"
|
||||
}
|
||||
|
||||
Gradient {
|
||||
|
|
|
|||
Loading…
Reference in New Issue