Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (3 weeks ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_sampling_thread.h

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    88 *****************************************************************************/
    99
    10 #ifndef _QWT_SAMPLING_THREAD_H_
    11 #define _QWT_SAMPLING_THREAD_H_
     10#ifndef QWT_SAMPLING_THREAD_H
     11#define QWT_SAMPLING_THREAD_H
    1212
    1313#include "qwt_global.h"
    … …  
    1515
    1616/*!
    17   \brief A thread collecting samples at regular intervals.
     17   \brief A thread collecting samples at regular intervals.
    1818
    19   Continuous signals are converted into a discrete signal by
    20   collecting samples at regular intervals. A discrete signal
    21   can be displayed by a QwtPlotSeriesItem on a QwtPlot widget.
     19   Continuous signals are converted into a discrete signal by
     20   collecting samples at regular intervals. A discrete signal
     21   can be displayed by a QwtPlotSeriesItem on a QwtPlot widget.
    2222
    23   QwtSamplingThread starts a thread calling periodically sample(),
    24   to collect and store ( or emit ) a single sample.
     23   QwtSamplingThread starts a thread calling periodically sample(),
     24   to collect and store ( or emit ) a single sample.
    2525
    26   \sa QwtPlotCurve, QwtPlotSeriesItem
    27 */
    28 class QWT_EXPORT QwtSamplingThread: public QThread
     26   \sa QwtPlotCurve, QwtPlotSeriesItem
     27 */
     28class QWT_EXPORT QwtSamplingThread : public QThread
    2929{
    3030    Q_OBJECT
    3131
    32 public:
     32  public:
    3333    virtual ~QwtSamplingThread();
    3434
    … …  
    3636    double elapsed() const;
    3737
    38 public Q_SLOTS:
     38  public Q_SLOTS:
    3939    void setInterval( double interval );
    4040    void stop();
    4141
    42 protected:
    43     explicit QwtSamplingThread( QObject *parent = NULL );
     42  protected:
     43    explicit QwtSamplingThread( QObject* parent = NULL );
    4444
    45     virtual void run();
     45    virtual void run() QWT_OVERRIDE;
    4646
    4747    /*!
    4848       Collect a sample
    4949
    50        \param elapsed Time since the thread was started in milliseconds
     50       \param elapsed Time since the thread was started in seconds
     51       \note Due to a bug in previous version elapsed was passed as
     52             seconds instead of miliseconds. To avoid breaking existing
     53             code we stay with seconds for now.
    5154     */
    5255    virtual void sample( double elapsed ) = 0;
    5356
    54 private:
     57  private:
    5558    class PrivateData;
    56     PrivateData *d_data;
     59    PrivateData* m_data;
    5760};
    5861
Note: See TracChangeset for help on using the changeset viewer.