Skip to content

Commit 2e9cc1a

Browse files
committedFeb 8, 2015
Reduce debug noise and fix Qt5 compatibility
Fix #12145 (Master does not compile with Qt5 libraries)
1 parent a7baf39 commit 2e9cc1a

File tree

6 files changed

+28
-20
lines changed

6 files changed

+28
-20
lines changed
 

‎src/core/qgsmaplayer.cpp

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,34 @@
1717

1818

1919
#include <QDateTime>
20-
#include <QDomNode>
21-
#include <QFileInfo>
22-
#include <QSettings> // TODO: get rid of it [MD]
2320
#include <QDir>
24-
#include <QFile>
2521
#include <QDomDocument>
2622
#include <QDomElement>
2723
#include <QDomImplementation>
24+
#include <QDomNode>
25+
#include <QFile>
26+
#include <QFileInfo>
27+
#include <QSettings> // TODO: get rid of it [MD]
2828
#include <QTextStream>
2929
#include <QUrl>
3030

3131
#include <sqlite3.h>
3232

33+
#include "qgsapplication.h"
34+
#include "qgscoordinatereferencesystem.h"
35+
#include "qgsdatasourceuri.h"
3336
#include "qgslogger.h"
34-
#include "qgsrectangle.h"
3537
#include "qgsmaplayer.h"
36-
#include "qgscoordinatereferencesystem.h"
37-
#include "qgsapplication.h"
3838
#include "qgsmaplayerlegend.h"
3939
#include "qgsmaplayerstylemanager.h"
40-
#include "qgsproject.h"
40+
#include "qgspluginlayer.h"
4141
#include "qgspluginlayerregistry.h"
4242
#include "qgsprojectfiletransform.h"
43-
#include "qgsdatasourceuri.h"
44-
#include "qgsvectorlayer.h"
45-
#include "qgsrasterlayer.h"
46-
#include "qgspluginlayer.h"
43+
#include "qgsproject.h"
4744
#include "qgsproviderregistry.h"
45+
#include "qgsrasterlayer.h"
46+
#include "qgsrectangle.h"
47+
#include "qgsvectorlayer.h"
4848

4949
QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
5050
QString lyrname,
@@ -754,12 +754,13 @@ QString QgsMapLayer::lastError()
754754
return QString();
755755
}
756756

757+
#if 0
757758
void QgsMapLayer::connectNotify( const char * signal )
758759
{
759760
Q_UNUSED( signal );
760761
QgsDebugMsgLevel( "QgsMapLayer connected to " + QString( signal ), 3 );
761762
} // QgsMapLayer::connectNotify
762-
763+
#endif
763764

764765

765766
void QgsMapLayer::toggleScaleBasedVisibility( bool theVisibilityFlag )

‎src/core/qgsmaplayer.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
#define QGSMAPLAYER_H
2020

2121
#include <QDateTime>
22+
#include <QDomNode>
23+
#include <QImage>
2224
#include <QObject>
25+
#include <QPainter>
2326
#include <QUndoStack>
2427
#include <QVariant>
25-
#include <QImage>
26-
#include <QDomNode>
27-
#include <QPainter>
2828

2929
#include "qgis.h"
3030
#include "qgserror.h"
31-
#include "qgsrectangle.h"
3231
#include "qgsmaprenderer.h"
3332
#include "qgsobjectcustomproperties.h"
33+
#include "qgsrectangle.h"
3434

3535
class QgsRenderContext;
3636
class QgsCoordinateReferenceSystem;
@@ -554,8 +554,10 @@ class CORE_EXPORT QgsMapLayer : public QObject
554554
/** Write style manager's configuration (if exists). To be called by subclasses. */
555555
void writeStyleManager( QDomNode& layerNode, QDomDocument& doc ) const;
556556

557+
#if 0
557558
/** debugging member - invoked when a connect() is made to this object */
558559
void connectNotify( const char * signal ) override;
560+
#endif
559561

560562
/** Add error message */
561563
void appendError( const QgsErrorMessage & theMessage ) { mError.append( theMessage );}

‎src/core/qgsmaplayerregistry.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,10 @@ const QMap<QString, QgsMapLayer*>& QgsMapLayerRegistry::mapLayers()
161161
}
162162

163163

164-
164+
#if 0
165165
void QgsMapLayerRegistry::connectNotify( const char * signal )
166166
{
167167
Q_UNUSED( signal );
168168
//QgsDebugMsg("QgsMapLayerRegistry connected to " + QString(signal));
169169
} // QgsMapLayerRegistry::connectNotify
170+
#endif

‎src/core/qgsmaplayerregistry.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,12 @@ class CORE_EXPORT QgsMapLayerRegistry : public QObject, public QgsSingleton<QgsM
229229
void legendLayersAdded( QList<QgsMapLayer*> theMapLayers );
230230

231231
protected:
232+
#if 0
232233
/** debugging member
233234
invoked when a connect() is made to this object
234235
*/
235236
void connectNotify( const char * signal ) override;
237+
#endif
236238

237239
private:
238240
//! private singleton constructor

‎src/gui/qgsmapcanvas.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,12 +1624,13 @@ void QgsMapCanvas::setRenderFlag( bool theFlag )
16241624
stopRendering();
16251625
}
16261626

1627+
#if 0
16271628
void QgsMapCanvas::connectNotify( const char * signal )
16281629
{
16291630
Q_UNUSED( signal );
16301631
QgsDebugMsg( "QgsMapCanvas connected to " + QString( signal ) );
16311632
} //connectNotify
1632-
1633+
#endif
16331634

16341635
void QgsMapCanvas::updateDatumTransformEntries()
16351636
{

‎src/gui/qgsmapcanvas.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,11 +587,12 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
587587
/// Handle pattern for implementation object
588588
QScopedPointer<CanvasProperties> mCanvasProperties;
589589

590+
#if 0
590591
/**debugging member
591592
invoked when a connect() is made to this object
592593
*/
593594
void connectNotify( const char * signal ) override;
594-
595+
#endif
595596
//! Make sure the datum transform store is properly populated
596597
void updateDatumTransformEntries();
597598

0 commit comments

Comments
 (0)
Please sign in to comment.