mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: port picture code to qt-quick
This was very painful, because I had to implement rearranging the paint order of the QSGNodes. The resulting code appears quite brittle. Let's see where that brings us. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d0c26f42d7
commit
ebf9ce6d86
22 changed files with 979 additions and 592 deletions
|
@ -20,7 +20,13 @@ public:
|
|||
QSizeF size() const;
|
||||
QRectF plotArea() const;
|
||||
void setBackgroundColor(QColor color); // Chart must be replot for color to become effective.
|
||||
void addQSGNode(QSGNode *node, size_t z); // Must only be called in render thread!
|
||||
void addQSGNode(QSGNode *node, size_t z, bool moveAfter, QSGNode *node2);
|
||||
// Must only be called in render thread!
|
||||
// If node2 is nullptr move to begin or end of list.
|
||||
void moveNodeBefore(QSGNode *node, size_t z, QSGNode *before);
|
||||
void moveNodeBack(QSGNode *node, size_t z);
|
||||
void moveNodeAfter(QSGNode *node, size_t z, QSGNode *after);
|
||||
void moveNodeFront(QSGNode *node, size_t z);
|
||||
void registerChartItem(ChartItem &item);
|
||||
void registerDirtyChartItem(ChartItem &item);
|
||||
void emergencyShutdown(); // Called when QQuick decides to delete our root node.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue