mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
19c46774b4
There's not much to show for this so far but some of the necessary infrastructure is in place.
30 lines
538 B
C++
30 lines
538 B
C++
#ifndef FREQUENCY_LINE_EDIT_HPP_
|
|
#define FREQUENCY_LINE_EDIT_HPP_
|
|
|
|
#include <QLineEdit>
|
|
|
|
#include "Radio.hpp"
|
|
|
|
class QWidget;
|
|
|
|
//
|
|
// MHz frequency line edit with validation
|
|
//
|
|
class FrequencyLineEdit final
|
|
: public QLineEdit
|
|
{
|
|
Q_OBJECT;
|
|
Q_PROPERTY (Frequency frequency READ frequency WRITE frequency USER true);
|
|
|
|
public:
|
|
using Frequency = Radio::Frequency;
|
|
|
|
explicit FrequencyLineEdit (QWidget * parent = nullptr);
|
|
|
|
// Property frequency implementation
|
|
Frequency frequency () const;
|
|
void frequency (Frequency);
|
|
};
|
|
|
|
#endif
|