mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in locationinformation.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eb09b79dc5
commit
54757fb694
1 changed files with 9 additions and 0 deletions
|
@ -280,12 +280,14 @@ void LocationInformationWidget::reverseGeocode()
|
||||||
|
|
||||||
DiveLocationFilterProxyModel::DiveLocationFilterProxyModel(QObject *parent)
|
DiveLocationFilterProxyModel::DiveLocationFilterProxyModel(QObject *parent)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
DiveLocationLineEdit *location_line_edit = 0;
|
DiveLocationLineEdit *location_line_edit = 0;
|
||||||
|
|
||||||
bool DiveLocationFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
bool DiveLocationFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(source_parent)
|
||||||
if (source_row == 0)
|
if (source_row == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
@ -301,6 +303,7 @@ bool DiveLocationFilterProxyModel::lessThan(const QModelIndex &source_left, cons
|
||||||
|
|
||||||
DiveLocationModel::DiveLocationModel(QObject *o)
|
DiveLocationModel::DiveLocationModel(QObject *o)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(o)
|
||||||
resetModel();
|
resetModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -361,16 +364,19 @@ QVariant DiveLocationModel::data(const QModelIndex &index, int role) const
|
||||||
|
|
||||||
int DiveLocationModel::columnCount(const QModelIndex &parent) const
|
int DiveLocationModel::columnCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent)
|
||||||
return COLUMNS;
|
return COLUMNS;
|
||||||
}
|
}
|
||||||
|
|
||||||
int DiveLocationModel::rowCount(const QModelIndex &parent) const
|
int DiveLocationModel::rowCount(const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent)
|
||||||
return dive_site_table.nr + 2;
|
return dive_site_table.nr + 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DiveLocationModel::setData(const QModelIndex &index, const QVariant &value, int role)
|
bool DiveLocationModel::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(role)
|
||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
return false;
|
return false;
|
||||||
if (index.row() > 1)
|
if (index.row() > 1)
|
||||||
|
@ -415,6 +421,7 @@ DiveLocationLineEdit::DiveLocationLineEdit(QWidget *parent) : QLineEdit(parent),
|
||||||
|
|
||||||
bool DiveLocationLineEdit::eventFilter(QObject *o, QEvent *e)
|
bool DiveLocationLineEdit::eventFilter(QObject *o, QEvent *e)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(o)
|
||||||
if (e->type() == QEvent::KeyPress) {
|
if (e->type() == QEvent::KeyPress) {
|
||||||
QKeyEvent *keyEv = (QKeyEvent *)e;
|
QKeyEvent *keyEv = (QKeyEvent *)e;
|
||||||
|
|
||||||
|
@ -498,6 +505,7 @@ static struct dive_site *get_dive_site_name_start_which_str(const QString &str)
|
||||||
|
|
||||||
void DiveLocationLineEdit::setTemporaryDiveSiteName(const QString &s)
|
void DiveLocationLineEdit::setTemporaryDiveSiteName(const QString &s)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(s)
|
||||||
QModelIndex i0 = model->index(0, DiveLocationModel::NAME);
|
QModelIndex i0 = model->index(0, DiveLocationModel::NAME);
|
||||||
QModelIndex i1 = model->index(1, DiveLocationModel::NAME);
|
QModelIndex i1 = model->index(1, DiveLocationModel::NAME);
|
||||||
model->setData(i0, text());
|
model->setData(i0, text());
|
||||||
|
@ -608,6 +616,7 @@ uint32_t DiveLocationLineEdit::currDiveSiteUuid() const
|
||||||
|
|
||||||
DiveLocationListView::DiveLocationListView(QWidget *parent)
|
DiveLocationListView::DiveLocationListView(QWidget *parent)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveLocationListView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
void DiveLocationListView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue