MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The FrequencySpectrumDelegate class represents a frequency delegate which creates the plot paths. 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) |
The FrequencySpectrumDelegate class represents a frequency delegate which creates the plot paths.
DECLARE CLASS FrequencySpectrumDelegate
Definition at line 81 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 65 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 88 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 194 of file frequencyspectrumdelegate.cpp.
void FrequencySpectrumDelegate::setScaleType | ( | qint8 | ScaleType | ) |
Set scale type.
[in] | ScaleType. |
Definition at line 81 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 172 of file frequencyspectrumdelegate.cpp.