Changeset 8127 in ntrip for trunk/BNC/qwt/qwt_plot_dict.cpp
- Timestamp:
- May 10, 2017, 3:20:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_dict.cpp
r4271 r8127 64 64 65 65 Auto deletion is enabled. 66 \sa setAutoDelete(), attachItem()66 \sa setAutoDelete(), QwtPlotItem::attach() 67 67 */ 68 68 QwtPlotDict::QwtPlotDict() … … 75 75 Destructor 76 76 77 If autoDelete is on, all attached items will be deleted78 \sa setAutoDelete(), autoDelete(), attachItem()77 If autoDelete() is on, all attached items will be deleted 78 \sa setAutoDelete(), autoDelete(), QwtPlotItem::attach() 79 79 */ 80 80 QwtPlotDict::~QwtPlotDict() … … 90 90 in the destructor of QwtPlotDict. The default value is on. 91 91 92 \sa autoDelete(), attachItem()92 \sa autoDelete(), insertItem() 93 93 */ 94 94 void QwtPlotDict::setAutoDelete( bool autoDelete ) … … 99 99 /*! 100 100 \return true if auto deletion is enabled 101 \sa setAutoDelete(), attachItem()101 \sa setAutoDelete(), insertItem() 102 102 */ 103 103 bool QwtPlotDict::autoDelete() const … … 107 107 108 108 /*! 109 Attach/Detacha plot item109 Insert a plot item 110 110 111 Attached items will be deleted in the destructor, 112 if auto deletion is enabled (default). Manually detached 113 items are not deleted. 111 \param item PlotItem 112 \sa removeItem() 113 */ 114 void QwtPlotDict::insertItem( QwtPlotItem *item ) 115 { 116 d_data->itemList.insertItem( item ); 117 } 114 118 115 \param item Plot item to attach/detach 116 \ on If true attach, else detach theitem119 /*! 120 Remove a plot item 117 121 118 \sa setAutoDelete(), ~QwtPlotDict() 119 */ 120 void QwtPlotDict::attachItem( QwtPlotItem *item, bool on ) 122 \param item PlotItem 123 \sa insertItem() 124 */ 125 void QwtPlotDict::removeItem( QwtPlotItem *item ) 121 126 { 122 if ( on ) 123 d_data->itemList.insertItem( item ); 124 else 125 d_data->itemList.removeItem( item ); 127 d_data->itemList.removeItem( item ); 126 128 } 127 129 … … 168 170 /*! 169 171 \return List of all attached plot items of a specific type. 172 \param rtti See QwtPlotItem::RttiValues 170 173 \sa QwtPlotItem::rtti() 171 174 */
Note:
See TracChangeset
for help on using the changeset viewer.