mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 20:58:55 -05:00
a1a6d1bc06
Working frequencies are mode dependent and a reset to defaults button has been added. Also re-factored much of the model and item delegate code to simplify several of the model implementations. Introduced a single routine called from main to register the custom types with Qt. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5453 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
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;
|
|
}
|