QAbstractItemDelegate painting one SpectrumView row as a horizontal frequency band. More...
#include <frequencyspectrumdelegate.h>
Public Member Functions | |
| FrequencySpectrumDelegate (QTableView *m_pTableView, QObject *parent=0) | |
| void | setScaleType (qint8 ScaleType) |
| virtual void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| virtual QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const |
| void | rcvMouseLoc (int row, int x, int y, QRect visRect) |
QAbstractItemDelegate painting one SpectrumView row as a horizontal frequency band.
Maps the per-row FFT amplitudes through a Hot / Jet colour table and draws the resulting pixel strip plus the lower / upper frequency cursors during paint().
Definition at line 69 of file frequencyspectrumdelegate.h.

| FrequencySpectrumDelegate::FrequencySpectrumDelegate | ( | QTableView * | m_pTableView, |
| QObject * | parent = 0 ) |
Creates a new abstract item delegate with the given parent.
| [in] | parent | Parent of the delegate. |
Definition at line 44 of file frequencyspectrumdelegate.cpp.
|
virtual |
Use the painter and style option to render the item specified by the item index.
(sizeHint() must be implemented also)
| [in] | painter | Low-level painting on widgets and other paint devices. |
| [in] | option | Describes the parameters used to draw an item in a view widget. |
| [in] | index | Used to locate data in a data model. |
Definition at line 67 of file frequencyspectrumdelegate.cpp.
| void FrequencySpectrumDelegate::rcvMouseLoc | ( | int | row, |
| int | x, | ||
| int | y, | ||
| QRect | visRect ) |
Receive Mouse location
| [in] | row | The select row of tableview. |
| [in] | x | mouse x pos. |
| [in] | y | mouse y pos. |
| [in] | visRect | visual rect of row_tableview. |
Definition at line 173 of file frequencyspectrumdelegate.cpp.
| void FrequencySpectrumDelegate::setScaleType | ( | qint8 | ScaleType | ) |
Set scale type.
| [in] | ScaleType. |
Definition at line 60 of file frequencyspectrumdelegate.cpp.
|
virtual |
Item size
| [in] | option | Describes the parameters used to draw an item in a view widget. |
| [in] | index | Used to locate data in a data model. |
Definition at line 151 of file frequencyspectrumdelegate.cpp.