mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 18:12:12 -05:00
23 lines
642 B
C++
23 lines
642 B
C++
|
#include "FrequencyItemDelegate.hpp"
|
||
|
|
||
|
#include "FrequencyLineEdit.hpp"
|
||
|
|
||
|
QWidget * FrequencyItemDelegate::createEditor (QWidget * parent
|
||
|
, QStyleOptionViewItem const& /* option */
|
||
|
, QModelIndex const& /* index */) const
|
||
|
{
|
||
|
auto editor = new FrequencyLineEdit {parent};
|
||
|
editor->setFrame (false);
|
||
|
return editor;
|
||
|
}
|
||
|
|
||
|
|
||
|
QWidget * FrequencyDeltaItemDelegate::createEditor (QWidget * parent
|
||
|
, QStyleOptionViewItem const& /* option */
|
||
|
, QModelIndex const& /* index */) const
|
||
|
{
|
||
|
auto editor = new FrequencyDeltaLineEdit {parent};
|
||
|
editor->setFrame (false);
|
||
|
return editor;
|
||
|
}
|