MCPcopy Create free account
hub / github.com/ZhuYanzhen1/miniFOC / registerGraph

Method registerGraph

tools/qcustomplot.cpp:16225–16240  ·  view source on GitHub ↗

! \internal In order to maintain the simplified graph interface of QCustomPlot, this method is called by the QCPGraph constructor to register itself with this QCustomPlot's internal graph list. Returns true on success, i.e. if \a graph is valid and wasn't already registered with this QCustomPlot. This graph specific registration happens in addition to the call to \ref registerPlottab

Source from the content-addressed store, hash-verified

16223 QCPAbstractPlottable base class.
16224*/
16225bool QCustomPlot::registerGraph(QCPGraph *graph)
16226{
16227 if (!graph)
16228 {
16229 qDebug() << Q_FUNC_INFO << "passed graph is zero";
16230 return false;
16231 }
16232 if (mGraphs.contains(graph))
16233 {
16234 qDebug() << Q_FUNC_INFO << "graph already registered with this QCustomPlot";
16235 return false;
16236 }
16237
16238 mGraphs.append(graph);
16239 return true;
16240}
16241
16242
16243/*! \internal

Callers 1

QCPGraphMethod · 0.80

Calls 2

containsMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected