Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwtpolar/qwt_polar_spectrogram.cpp

    r4272 r8127  
    9595public:
    9696    PrivateData():
    97         data( NULL ),
    98         renderThreadCount( 1 )
     97        data( NULL )
    9998    {
    10099        colorMap = new QwtLinearColorMap();
     
    109108    QwtRasterData *data;
    110109    QwtColorMap *colorMap;
    111 
    112     uint renderThreadCount;
    113110
    114111    QwtPolarSpectrogram::PaintAttributes paintAttributes;
     
    223220{
    224221    return ( d_data->paintAttributes & attribute );
    225 }
    226 
    227 /*!
    228    Rendering an image from the raster data can often be done
    229    parallel on a multicore system.
    230 
    231    \param numThreads Number of threads to be used for rendering.
    232                      If numThreads is set to 0, the system specific
    233                      ideal thread count is used.
    234 
    235    The default thread count is 1 ( = no additional threads )
    236 
    237    \warning Rendering in multiple threads is only supported for Qt >= 4.4
    238    \sa renderThreadCount(), renderImage(), renderTile()
    239 */
    240 void QwtPolarSpectrogram::setRenderThreadCount( uint numThreads )
    241 {
    242     d_data->renderThreadCount = numThreads;
    243 }
    244 
    245 /*!
    246    \return Number of threads to be used for rendering.
    247            If numThreads is set to 0, the system specific
    248            ideal thread count is used.
    249 
    250    \warning Rendering in multiple threads is only supported for Qt >= 4.4
    251    \sa setRenderThreadCount(), renderImage(), renderTile()
    252 */
    253 uint QwtPolarSpectrogram::renderThreadCount() const
    254 {
    255     return d_data->renderThreadCount;
    256222}
    257223
     
    357323
    358324#if QT_VERSION >= 0x040400 && !defined(QT_NO_QFUTURE)
    359     uint numThreads = d_data->renderThreadCount;
     325    uint numThreads = renderThreadCount();
    360326
    361327    if ( numThreads <= 0 )
Note: See TracChangeset for help on using the changeset viewer.