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_itemdict.cpp

    r4272 r8127  
    110110
    111111/*!
    112    Attach/Detach a plot item
     112  Insert a plot item
    113113
    114    Attached items will be deleted in the destructor,
    115    if auto deletion is enabled (default). Manually detached
    116    items are not deleted.
     114  \param item PlotItem
     115  \sa removeItem()
     116 */
     117void QwtPolarItemDict::insertItem( QwtPolarItem *item )
     118{
     119    d_data->itemList.insertItem( item );
     120}
    117121
    118    \param item Plot item to attach/detach
    119    \ on If true attach, else detach the item
     122/*!
     123  Remove a plot item
    120124
    121    \sa setAutoDelete, ~QwtPolarItemDict
    122 */
    123 void QwtPolarItemDict::attachItem( QwtPolarItem *item, bool on )
     125  \param item PlotItem
     126  \sa insertItem()
     127 */
     128void QwtPolarItemDict::removeItem( QwtPolarItem *item )
    124129{
    125     if ( on )
    126         d_data->itemList.insertItem( item );
    127     else
    128         d_data->itemList.removeItem( item );
     130    d_data->itemList.removeItem( item );
    129131}
    130132
Note: See TracChangeset for help on using the changeset viewer.