MCPcopy Create free account
hub / github.com/cutechess/cutechess / registerGraph

Method registerGraph

projects/gui/3rdparty/qcustomplot/qcustomplot.cpp:16244–16259  ·  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

16242 QCPAbstractPlottable base class.
16243*/
16244bool QCustomPlot::registerGraph(QCPGraph *graph)
16245{
16246 if (!graph)
16247 {
16248 qDebug() << Q_FUNC_INFO << "passed graph is zero";
16249 return false;
16250 }
16251 if (mGraphs.contains(graph))
16252 {
16253 qDebug() << Q_FUNC_INFO << "graph already registered with this QCustomPlot";
16254 return false;
16255 }
16256
16257 mGraphs.append(graph);
16258 return true;
16259}
16260
16261
16262/*! \internal

Callers 1

QCPGraphMethod · 0.80

Calls 2

appendMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected