mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Wrapped qWarnings in #ifdef DEBUG statements to prevent extraneous stdout messages when built with debug=false.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@748 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
572f2c7b99
commit
9fed5693c4
@ -263,12 +263,16 @@ void QgsVectorLayer::draw(QPainter * p, QgsRect * viewExtent, QgsCoordinateTrans
|
||||
|
||||
// select the records in the extent. The provider sets a spatial filter
|
||||
// and sets up the selection set for retrieval
|
||||
#ifdef DEBUG
|
||||
qWarning("Selecting features based on view extent");
|
||||
#endif
|
||||
dataProvider->reset();
|
||||
dataProvider->select(viewExtent);
|
||||
int featureCount = 0;
|
||||
// QgsFeature *ftest = dataProvider->getFirstFeature();
|
||||
#ifdef DEBUG
|
||||
qWarning("Starting draw of features");
|
||||
#endif
|
||||
QgsFeature *fet;
|
||||
unsigned char *feature;
|
||||
bool attributesneeded = m_renderer->needsAttributes();
|
||||
@ -477,7 +481,9 @@ void QgsVectorLayer::draw(QPainter * p, QgsRect * viewExtent, QgsCoordinateTrans
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG
|
||||
qWarning("Warning, QgsRenderer is null in QgsVectorLayer::draw()");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -596,7 +602,9 @@ void QgsVectorLayer::table()
|
||||
for(std::map<int,bool>::iterator it=selected.begin();it!=selected.end();++it)
|
||||
{
|
||||
tabledisplay->table()->selectRowWithId(it->first);
|
||||
#ifdef DEBUG
|
||||
qWarning("selecting row with id " +QString::number(it->first));
|
||||
#endif
|
||||
}
|
||||
|
||||
QObject::connect(tabledisplay->table(), SIGNAL(selectionChanged()), tabledisplay->table(), SLOT(handleChangedSelections()));
|
||||
@ -747,7 +755,9 @@ QGis::VectorType QgsVectorLayer::vectorType()
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef DEBUG
|
||||
qWarning("warning, pointer to dataProvider is null in QgsVectorLayer::vectorType()");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user