Whitespace, whitespace, whitespace

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-01-21 14:27:44 -08:00
parent bd96036892
commit 1f785111f7

View file

@ -102,7 +102,8 @@ void DiveProfileItem::paint(QPainter* painter, const QStyleOptionGraphicsItem* o
}
}
void DiveProfileItem::modelDataChanged(){
void DiveProfileItem::modelDataChanged()
{
AbstractProfilePolygonItem::modelDataChanged();
if (polygon().isEmpty())
return;
@ -132,7 +133,8 @@ void DiveProfileItem::modelDataChanged(){
QLinearGradient pat(0, polygon().boundingRect().top(), 0, polygon().boundingRect().bottom());
pat.setColorAt(1, getColor(DEPTH_BOTTOM));
pat.setColorAt(0, getColor(DEPTH_TOP));
setBrush(QBrush(pat));AbstractProfilePolygonItem::preferencesChanged();
setBrush(QBrush(pat));
AbstractProfilePolygonItem::preferencesChanged();
int last = -1;
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
* than a quarter of the dive back */
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);
}
}