mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in configuredivecomputerdialog.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ac7540b164
commit
eb09b79dc5
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,8 @@ GasSpinBoxItemDelegate::~GasSpinBoxItemDelegate()
|
||||||
|
|
||||||
QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(option)
|
||||||
|
Q_UNUSED(index)
|
||||||
// Create the spinbox and give it it's settings
|
// Create the spinbox and give it it's settings
|
||||||
QSpinBox *sb = new QSpinBox(parent);
|
QSpinBox *sb = new QSpinBox(parent);
|
||||||
if (type == PERCENT) {
|
if (type == PERCENT) {
|
||||||
|
@ -82,6 +84,8 @@ GasTypeComboBoxItemDelegate::~GasTypeComboBoxItemDelegate()
|
||||||
|
|
||||||
QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(option)
|
||||||
|
Q_UNUSED(index)
|
||||||
// Create the combobox and populate it
|
// Create the combobox and populate it
|
||||||
QComboBox *cb = new QComboBox(parent);
|
QComboBox *cb = new QComboBox(parent);
|
||||||
cb->addItem(QString("Disabled"));
|
cb->addItem(QString("Disabled"));
|
||||||
|
@ -327,6 +331,7 @@ ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog()
|
||||||
|
|
||||||
void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *event)
|
void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *event)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(event)
|
||||||
dc_close();
|
dc_close();
|
||||||
|
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue