mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-05 00:41:19 -05:00
22 lines
660 B
C++
22 lines
660 B
C++
|
#ifndef FREQUENCY_DELTA_DELEGATE_HPP_
|
||
|
#define FREQUENCY_DELTA_DELEGATE_HPP_
|
||
|
|
||
|
#include <QStyledItemDelegate>
|
||
|
|
||
|
//
|
||
|
// Class FrequencyDeltaDelegate
|
||
|
//
|
||
|
// Item delegate for editing a frequency delta in Hertz but displayed in MHz
|
||
|
//
|
||
|
class FrequencyDeltaDelegate final
|
||
|
: public QStyledItemDelegate
|
||
|
{
|
||
|
public:
|
||
|
explicit FrequencyDeltaDelegate (QObject * parent = nullptr);
|
||
|
QWidget * createEditor (QWidget * parent, QStyleOptionViewItem const&, QModelIndex const&) const override;
|
||
|
void setEditorData (QWidget * editor, QModelIndex const&) const override;
|
||
|
void setModelData (QWidget * editor, QAbstractItemModel *, QModelIndex const&) const override;
|
||
|
};
|
||
|
|
||
|
#endif
|