diff --git a/plugins/channelrx/noisefigure/noisefiguregui.cpp b/plugins/channelrx/noisefigure/noisefiguregui.cpp index bd5afea7d..81235801a 100644 --- a/plugins/channelrx/noisefigure/noisefiguregui.cpp +++ b/plugins/channelrx/noisefigure/noisefiguregui.cpp @@ -33,6 +33,7 @@ #include "gui/basicchannelsettingsdialog.h" #include "gui/devicestreamselectiondialog.h" #include "gui/crightclickenabler.h" +#include "gui/decimaldelegate.h" #include "maincore.h" #include "noisefigure.h" @@ -40,26 +41,6 @@ #include "noisefigurecontroldialog.h" #include "noisefigureenrdialog.h" -// Deligate for table to control precision used to display floating point values -class DecimalDelegate : public QStyledItemDelegate { - -public: - DecimalDelegate(int precision = 2) : - m_precision(precision) - { - } - - virtual QString displayText(const QVariant &value, const QLocale &locale) const override - { - (void) locale; - return QString::number(value.toDouble(), 'f', m_precision); - } - -private: - int m_precision; - -}; - void NoiseFigureGUI::resizeTable() { // Fill table with a row of dummy data that will size the columns nicely