diff options
| author | Christoph Berg <myon@debian.org> | 2019-06-02 22:20:23 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2019-06-02 22:20:23 +0200 |
| commit | e6817de24bdd0a9f5677b07d6bff897a5db47794 (patch) | |
| tree | 1eba79fe1a06ab93d1025297cee39e95dfab98a4 /widgets/FrequencyLineEdit.cpp | |
| parent | 58a14345036378f9040e269fa276ba0c97795037 (diff) | |
| parent | 851b658298afb9bafeda98ffbfa2ade612c656be (diff) | |
Update upstream source from tag 'upstream/2.1.0_rc6+repack'
Update to upstream version '2.1.0~rc6+repack'
with Debian dir 2aba196aec0548f1bb333214231be9cc9efe2d4c
Diffstat (limited to 'widgets/FrequencyLineEdit.cpp')
| -rw-r--r-- | widgets/FrequencyLineEdit.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/widgets/FrequencyLineEdit.cpp b/widgets/FrequencyLineEdit.cpp index 78f8b2e1..1ca2ba20 100644 --- a/widgets/FrequencyLineEdit.cpp +++ b/widgets/FrequencyLineEdit.cpp @@ -51,21 +51,3 @@ void FrequencyLineEdit::frequency (Frequency f) { setText (Radio::frequency_MHz_string (f)); } - - -FrequencyDeltaLineEdit::FrequencyDeltaLineEdit (QWidget * parent) - : QLineEdit (parent) -{ - setValidator (new MHzValidator {-std::numeric_limits<FrequencyDelta>::max () / 10.e6, - std::numeric_limits<FrequencyDelta>::max () / 10.e6, this}); -} - -auto FrequencyDeltaLineEdit::frequency_delta () const -> FrequencyDelta -{ - return Radio::frequency_delta (text (), 6); -} - -void FrequencyDeltaLineEdit::frequency_delta (FrequencyDelta d) -{ - setText (Radio::frequency_MHz_string (d)); -} |
