Skip to content
Permalink
Browse files
fix warnings
  • Loading branch information
jef-n committed Mar 29, 2012
1 parent b8bd36c commit 90580592d90fc3ac52f536ce35eae225ca41abc6
@@ -110,6 +110,7 @@ void addToTmpNodes(QgsRasterCalcNode* node)
void joinTmpNodes(QgsRasterCalcNode* parent, QgsRasterCalcNode* left, QgsRasterCalcNode* right)
{
bool res;
Q_UNUSED(res);

if (left)
{
@@ -190,19 +190,22 @@ void HeatmapGui::on_cellYLineEdit_editingFinished()

void HeatmapGui::on_radiusFieldUnitCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
updateBBox();
// DebugMsg to avoid index not used warning
QgsDebugMsg( QString( "Unit index set to %1" ).arg( index ) );
}

void HeatmapGui::on_mRadiusUnitCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
QgsDebugMsg( QString( "Unit index set to %1" ).arg( index ) );
updateBBox();
}

void HeatmapGui::on_mInputVectorCombo_currentIndexChanged( int index )
{
Q_UNUSED( index );
if ( advancedGroupBox->isChecked() )
{
populateFields();
@@ -241,7 +244,7 @@ void HeatmapGui::enableOrDisableOkButton()
void HeatmapGui::populateFields()
{
QgsVectorLayer* inputLayer = inputVectorLayer();
if( !inputLayer )
if ( !inputLayer )
return;

// The fields
@@ -273,7 +276,7 @@ void HeatmapGui::updateBBox()
{
// Set the row/cols and cell sizes here
QgsVectorLayer *inputLayer = inputVectorLayer();
if( !inputLayer )
if ( !inputLayer )
return;

mBBox = inputLayer->extent();
@@ -572,7 +572,9 @@ void QgsMssqlProvider::select( QgsAttributeList fetchAttributes,
}
}
else
{
QgsDebugMsg( "QgsMssqlProvider::select no fields have been requested" );
}
}

// update the extent, feature count, wkb type and srid for this layer
@@ -310,8 +310,9 @@ QIcon QgsMssqlTableModel::iconForWkbType( QGis::WkbType type )
case QGis::WKBNoGeometry:
return QIcon( QgsDataItem::getThemePixmap( "/mIconTableLayer.png" ) );
case QGis::WKBUnknown:
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
break;
}
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
}

bool QgsMssqlTableModel::setData( const QModelIndex &idx, const QVariant &value, int role )
@@ -311,8 +311,9 @@ QIcon QgsPgTableModel::iconForWkbType( QGis::WkbType type )
case QGis::WKBNoGeometry:
return QIcon( QgsDataItem::getThemePixmap( "/mIconTableLayer.png" ) );
case QGis::WKBUnknown:
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
break;
}
return QIcon( QgsDataItem::getThemePixmap( "/mIconLayer.png" ) );
}

bool QgsPgTableModel::setData( const QModelIndex &idx, const QVariant &value, int role )
@@ -155,7 +155,6 @@
<property name="autoFillBackground">
<bool>false</bool>
</property>
<zorder>mButtonBox</zorder>
</widget>
</item>
<item row="3" column="0" colspan="2">
@@ -37,7 +37,7 @@
<property name="title">
<string>Connection Information</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_1">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
@@ -488,7 +488,7 @@
<property name="title">
<string>WMS Capabilitities</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<layout class="QGridLayout" name="gridLayout_10">
<item row="1" column="0">
<widget class="QGroupBox" name="grpWMSExt">
<property name="title">
@@ -731,7 +731,7 @@
<height>497</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_17">
<item row="0" column="0">
<widget class="QPushButton" name="mButtonAddJoin">
<property name="text">

0 comments on commit 9058059

Please sign in to comment.