File indexing completed on 2024-05-12 04:20:16

0001 /**
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #ifndef SUMGUI_MODELPARAMVSPARAM_H
0010 #define SUMGUI_MODELPARAMVSPARAM_H
0011 
0012 
0013 #include <QStandardItemModel>
0014 #include <QTimer>
0015 
0016 
0017 class ModelParamVsParam: public QStandardItemModel
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     ModelParamVsParam(
0023         QObject                 *p_parent = nullptr);
0024 
0025     void setTimeout(
0026         int                 p_timeout);
0027 
0028     void startSampling();
0029 
0030     void stopSampling();
0031 
0032     void populate(
0033         int                 p_nrOfParameters = 8,
0034         int                 p_nrOfSamples = 100);
0035 
0036 private Q_SLOTS:
0037     void timeout();
0038 
0039 private:
0040     QTimer                  m_timer;
0041 }; // class ModelParamVsParam
0042 
0043 
0044 #endif // SUMGUI_MODELPARAMVSPARAM_H