Fix misc. linting and typos
Trim whitespace; move imports to separate lines, fix typos
This commit is contained in:
@@ -112,7 +112,7 @@ lordneroo
|
||||
looooo
|
||||
Lorenz Huedepohl
|
||||
Luc
|
||||
Luke Parry
|
||||
Luke Parry
|
||||
luzpaz (Kunda1)
|
||||
Manel (Quenzo)
|
||||
Марко Пејовић
|
||||
|
||||
@@ -295,7 +295,7 @@ function toggleVisibility(linkObj)
|
||||
summary.hide();
|
||||
$(linkObj).removeClass('closed').addClass('opened');
|
||||
$(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function updateStripes()
|
||||
@@ -305,7 +305,7 @@ function updateStripes()
|
||||
}
|
||||
function toggleLevel(level)
|
||||
{
|
||||
$('table.directory tr').each(function(){
|
||||
$('table.directory tr').each(function(){
|
||||
var l = this.id.split('_').length-1;
|
||||
var i = $('#img'+this.id.substring(3));
|
||||
var a = $('#arr'+this.id.substring(3));
|
||||
|
||||
@@ -377,14 +377,14 @@ int imageVerticalBalance(QImage p, int sizeHint) {
|
||||
if (qAlpha(p.pixel(x, top))) {
|
||||
done = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (done) break;
|
||||
}
|
||||
for (bottom = startRow; bottom < h; bottom++) {
|
||||
for (x = 0; x < p.width(); x++){
|
||||
if (qAlpha(p.pixel(x, h-1-bottom)))
|
||||
return (bottom-top)/2;
|
||||
if (qAlpha(p.pixel(x, h-1-bottom)))
|
||||
return (bottom-top)/2;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
@@ -408,7 +408,7 @@ void NaviCubeImplementation::createCubeFaceTextures() {
|
||||
qreal maxFontSize = 0.;
|
||||
vector<PickId> mains = {PickId::Front, PickId::Top, PickId::Right, PickId::Rear, PickId::Bottom, PickId::Left};
|
||||
for (PickId pickId : mains) {
|
||||
auto t = QString::fromUtf8(m_LabelTextures[pickId].label.c_str());
|
||||
auto t = QString::fromUtf8(m_LabelTextures[pickId].label.c_str());
|
||||
QRect br = fm.boundingRect(t);
|
||||
float scale = (float)texSize / max(br.width(),br.height());
|
||||
m_LabelTextures[pickId].fontSize = texSize * scale;
|
||||
|
||||
@@ -2566,7 +2566,7 @@ Base::Vector3d QGIViewDimension::findIsoExt(Base::Vector3d dir) const
|
||||
else if (dir.IsEqual(-isoZ, FLT_EPSILON)) {
|
||||
return -isoX;
|
||||
}
|
||||
|
||||
|
||||
//tarfu
|
||||
Base::Console().Message("QGIVD::findIsoExt - %s - input is not iso axis\n",
|
||||
getViewObject()->getNameInDocument());
|
||||
|
||||
@@ -19,10 +19,11 @@
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
"""Utilites for generating C++ code for parameters management using Python Cog
|
||||
"""Utilities for generating C++ code for parameter management using Python Cog
|
||||
"""
|
||||
import cog
|
||||
import inspect, re
|
||||
import inspect
|
||||
import re
|
||||
from os import path
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user