1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Fix warnings

This commit is contained in:
srcejon 2023-10-22 10:25:08 +01:00
parent 3e147ec804
commit 1b392ee53c

View File

@ -111,6 +111,9 @@ QString FrequencyDelegate::displayText(const QVariant &value, const QLocale &loc
QWidget* FrequencyDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const QWidget* FrequencyDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
{ {
(void) option;
(void) index;
QLineEdit* editor = new QLineEdit(parent); QLineEdit* editor = new QLineEdit(parent);
QIntValidator* validator = new QIntValidator(); QIntValidator* validator = new QIntValidator();
validator->setBottom(0); validator->setBottom(0);
@ -134,5 +137,6 @@ void FrequencyDelegate::setModelData(QWidget* editor, QAbstractItemModel* model,
void FrequencyDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const void FrequencyDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const
{ {
(void) index;
editor->setGeometry(option.rect); editor->setGeometry(option.rect);
} }