summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/data/qbardataproxy.cpp
diff options
context:
space:
mode:
authorNiko Korkala <[email protected]>2025-03-24 13:04:36 +0200
committerNiko Korkala <[email protected]>2025-05-29 06:02:13 +0000
commitc1ccb5b83439203dcebe093ebb475d642d5b2973 (patch)
treeb83d64c24a9c2789835e834b9b2882adc5a816e5 /src/graphs3d/data/qbardataproxy.cpp
parent1841af2b5b057929f5b8425e59c75f3b8af19b5a (diff)
Add categorized logging to graphs 3d pt1HEADdev
Feature allows developers to turn on categorized logging in graphs 3D which will log various different things qt.graphs3d.general, general purpose logs qt.graphs3d.series, series addition/removal qt.graphs3d.properties, property changes qt.graphs3d.events, sliceview enter/exit, zoom/rotate values qt.graphs3d.inputEvents, pick results qt.graphs3d.axis.general, axis general purpose qt.graphs3d.axis.properties, axis properties qt.graphs3d.critical, critical Task-number: QTBUG-128886 Change-Id: I714ff59af47f9ec583eae57e89fd0ae417d900df Reviewed-by: Sami Varanka <[email protected]>
Diffstat (limited to 'src/graphs3d/data/qbardataproxy.cpp')
-rw-r--r--src/graphs3d/data/qbardataproxy.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/graphs3d/data/qbardataproxy.cpp b/src/graphs3d/data/qbardataproxy.cpp
index 2b637c66..3ae9c644 100644
--- a/src/graphs3d/data/qbardataproxy.cpp
+++ b/src/graphs3d/data/qbardataproxy.cpp
@@ -3,6 +3,7 @@
#include "qbar3dseries_p.h"
#include "qbardataproxy_p.h"
+#include "qgraphs3dlogging_p.h"
QT_BEGIN_NAMESPACE
@@ -142,7 +143,7 @@ QBar3DSeries *QBarDataProxy::series() const
{
Q_D(const QBarDataProxy);
if (!d->series())
- qWarning("Series needs to be created to access data members");
+ qCWarning(lcGraphs3D, "series needs to be created to access data members");
return static_cast<QBar3DSeries *>(d->series());
}
@@ -168,8 +169,10 @@ void QBarDataProxy::resetArray()
void QBarDataProxy::resetArray(QBarDataArray newArray)
{
Q_D(QBarDataProxy);
- if (!series())
+ if (!series()) {
+ qCWarning(lcGraphs3D, "Series needs to be valid before using resetArray");
return;
+ }
d->resetArray(std::move(newArray), QStringList(), QStringList());
emit arrayReset();