summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 20:08:03 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:50:23 -0800
commit4156bc36512ed2703b1d8566c77b060072922451 (patch)
tree91420611556625dd689313a81fda9f61467e7b8f /profile-widget/profilewidget2.cpp
parent2d9c9c6a1c5b04170debc8d7b673aa643fe3aff2 (diff)
downloadsubsurface-4156bc36512ed2703b1d8566c77b060072922451.tar.gz
Silence warnings in profilewidget2.cpp
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 627e5c40a..4f665b2be 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -1302,7 +1302,7 @@ struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos)
for (int i = 0; i < plotInfo.nr; i++) {
entry = plotInfo.entry + i;
- if (entry->sec >= seconds)
+ if ((int)entry->sec >= seconds)
break;
}
return entry;
@@ -1358,7 +1358,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
if (rowCount > 1) {
// if we have more than one gas, offer to switch to another one
QMenu *gasChange = m.addMenu(tr("Add gas change"));
- for (int i = 0; i < rowCount; i++) {
+ for (unsigned int i = 0; i < (unsigned int)rowCount; i++) {
QAction *action = new QAction(&m);
action->setText(model->data(model->index(i, 0), Qt::DisplayRole).toString() + QString(tr(" (Tank %1)")).arg(i + 1));
connect(action, SIGNAL(triggered(bool)), this, SLOT(changeGas()));
@@ -1674,6 +1674,9 @@ void ProfileWidget2::disconnectTemporaryConnections()
#ifndef SUBSURFACE_MOBILE
void ProfileWidget2::pointInserted(const QModelIndex &parent, int start, int end)
{
+ Q_UNUSED(parent)
+ Q_UNUSED(start)
+ Q_UNUSED(end)
DiveHandler *item = new DiveHandler();
scene()->addItem(item);
handles << item;