mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace, whitespace, whitespace
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bd96036892
commit
1f785111f7
1 changed files with 11 additions and 8 deletions
|
@ -102,7 +102,8 @@ void DiveProfileItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* o
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveProfileItem::modelDataChanged(){
|
void DiveProfileItem::modelDataChanged()
|
||||||
|
{
|
||||||
AbstractProfilePolygonItem::modelDataChanged();
|
AbstractProfilePolygonItem::modelDataChanged();
|
||||||
if (polygon().isEmpty())
|
if (polygon().isEmpty())
|
||||||
return;
|
return;
|
||||||
|
@ -132,7 +133,8 @@ void DiveProfileItem::modelDataChanged(){
|
||||||
QLinearGradient pat(0, polygon().boundingRect().top(), 0, polygon().boundingRect().bottom());
|
QLinearGradient pat(0, polygon().boundingRect().top(), 0, polygon().boundingRect().bottom());
|
||||||
pat.setColorAt(1, getColor(DEPTH_BOTTOM));
|
pat.setColorAt(1, getColor(DEPTH_BOTTOM));
|
||||||
pat.setColorAt(0, getColor(DEPTH_TOP));
|
pat.setColorAt(0, getColor(DEPTH_TOP));
|
||||||
setBrush(QBrush(pat));AbstractProfilePolygonItem::preferencesChanged();
|
setBrush(QBrush(pat));
|
||||||
|
AbstractProfilePolygonItem::preferencesChanged();
|
||||||
|
|
||||||
int last = -1;
|
int last = -1;
|
||||||
for (int i = 0, count = dataModel->rowCount(); i < count; i++) {
|
for (int i = 0, count = dataModel->rowCount(); i < count; i++) {
|
||||||
|
@ -223,7 +225,8 @@ void DiveTemperatureItem::modelDataChanged()
|
||||||
* different or if the last temperature print has been more
|
* different or if the last temperature print has been more
|
||||||
* than a quarter of the dive back */
|
* than a quarter of the dive back */
|
||||||
int last_temperature = dataModel->data(dataModel->index(dataModel->rowCount()-1, DivePlotDataModel::TEMPERATURE)).toInt();
|
int last_temperature = dataModel->data(dataModel->index(dataModel->rowCount()-1, DivePlotDataModel::TEMPERATURE)).toInt();
|
||||||
if (last_temperature > 200000 && ((abs(last_temperature - last_printed_temp) > 500) || ((double)last / (double)sec < 0.75))){
|
if (last_temperature > 200000 &&
|
||||||
|
((abs(last_temperature - last_printed_temp) > 500) || ((double)last / (double)sec < 0.75))) {
|
||||||
createTextItem(sec, last_temperature);
|
createTextItem(sec, last_temperature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue