1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-05 15:34:57 -04:00

Add parent to delegate constructors.

This commit is contained in:
srcejon
2024-04-10 01:33:42 +01:00
parent 6979117b26
commit 5e79f06c0e
12 changed files with 28 additions and 20 deletions
+5 -3
View File
@@ -2,7 +2,7 @@
// Copyright (C) 2012 maintech GmbH, Otto-Hahn-Str. 15, 97204 Hoechberg, Germany //
// written by Christian Daniel //
// Copyright (C) 2015-2020 Edouard Griffiths, F4EXB <f4exb06@gmail.com> //
// Copyright (C) 2020-2022 Jon Beniston, M7RCE <jon@beniston.com> //
// Copyright (C) 2020-2024 Jon Beniston, M7RCE <jon@beniston.com> //
// //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
@@ -41,14 +41,16 @@ public:
}
};
DecimalDelegate::DecimalDelegate(int precision) :
DecimalDelegate::DecimalDelegate(int precision, QObject *parent) :
QStyledItemDelegate(parent),
m_precision(precision),
m_min(-std::numeric_limits<double>::max()),
m_max(std::numeric_limits<double>::max())
{
}
DecimalDelegate::DecimalDelegate(int precision, double min, double max) :
DecimalDelegate::DecimalDelegate(int precision, double min, double max, QObject *parent) :
QStyledItemDelegate(parent),
m_precision(precision),
m_min(min),
m_max(max)