diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 20:31:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 21:50:37 -0800 |
commit | 54757fb6943a71089da6e4287ccd2d9b95342a27 (patch) | |
tree | bee54dce190f6e7958808e5d3c36d389f8228743 /desktop-widgets | |
parent | eb09b79dc58448ca1328f3df833c3166c559ef30 (diff) | |
download | subsurface-54757fb6943a71089da6e4287ccd2d9b95342a27.tar.gz |
Silence warnings in locationinformation.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/locationinformation.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 2501ad7fb..5ca858a6b 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -280,12 +280,14 @@ void LocationInformationWidget::reverseGeocode() DiveLocationFilterProxyModel::DiveLocationFilterProxyModel(QObject *parent) { + Q_UNUSED(parent) } DiveLocationLineEdit *location_line_edit = 0; bool DiveLocationFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const { + Q_UNUSED(source_parent) if (source_row == 0) return true; @@ -301,6 +303,7 @@ bool DiveLocationFilterProxyModel::lessThan(const QModelIndex &source_left, cons DiveLocationModel::DiveLocationModel(QObject *o) { + Q_UNUSED(o) resetModel(); } @@ -361,16 +364,19 @@ QVariant DiveLocationModel::data(const QModelIndex &index, int role) const int DiveLocationModel::columnCount(const QModelIndex &parent) const { + Q_UNUSED(parent) return COLUMNS; } int DiveLocationModel::rowCount(const QModelIndex &parent) const { + Q_UNUSED(parent) return dive_site_table.nr + 2; } bool DiveLocationModel::setData(const QModelIndex &index, const QVariant &value, int role) { + Q_UNUSED(role) if (!index.isValid()) return false; if (index.row() > 1) @@ -415,6 +421,7 @@ DiveLocationLineEdit::DiveLocationLineEdit(QWidget *parent) : QLineEdit(parent), bool DiveLocationLineEdit::eventFilter(QObject *o, QEvent *e) { + Q_UNUSED(o) if (e->type() == QEvent::KeyPress) { 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) { + Q_UNUSED(s) QModelIndex i0 = model->index(0, DiveLocationModel::NAME); QModelIndex i1 = model->index(1, DiveLocationModel::NAME); model->setData(i0, text()); @@ -608,6 +616,7 @@ uint32_t DiveLocationLineEdit::currDiveSiteUuid() const DiveLocationListView::DiveLocationListView(QWidget *parent) { + Q_UNUSED(parent) } void DiveLocationListView::currentChanged(const QModelIndex ¤t, const QModelIndex &previous) |