mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop-widgets: Change Q_UNUSED to no parameter name
C++ permits use of parameters without name, which signals unused Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
e47f6df076
commit
e536682b84
12 changed files with 43 additions and 103 deletions
|
@ -21,10 +21,8 @@ GasSpinBoxItemDelegate::~GasSpinBoxItemDelegate()
|
|||
{
|
||||
}
|
||||
|
||||
QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
QWidget *GasSpinBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem&, const QModelIndex&) const
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(index)
|
||||
// Create the spinbox and give it it's settings
|
||||
QSpinBox *sb = new QSpinBox(parent);
|
||||
if (type == PERCENT) {
|
||||
|
@ -67,10 +65,8 @@ GasTypeComboBoxItemDelegate::~GasTypeComboBoxItemDelegate()
|
|||
{
|
||||
}
|
||||
|
||||
QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
|
||||
QWidget *GasTypeComboBoxItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem&, const QModelIndex&) const
|
||||
{
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(index)
|
||||
// Create the combobox and populate it
|
||||
QComboBox *cb = new QComboBox(parent);
|
||||
cb->addItem(QString("Disabled"));
|
||||
|
@ -362,9 +358,8 @@ ConfigureDiveComputerDialog::~ConfigureDiveComputerDialog()
|
|||
delete config;
|
||||
}
|
||||
|
||||
void ConfigureDiveComputerDialog::closeEvent(QCloseEvent *event)
|
||||
void ConfigureDiveComputerDialog::closeEvent(QCloseEvent*)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
dc_close();
|
||||
|
||||
QSettings settings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue