@@ -32,12 +32,12 @@ QgsMapRendererCustomPainterJob::QgsMapRendererCustomPainterJob( const QgsMapSett
32
32
, mActive( false )
33
33
, mRenderSynchronously( false )
34
34
{
35
- QgsDebugMsg ( " QPAINTER construct" );
35
+ QgsDebugMsgLevel ( " QPAINTER construct" , 5 );
36
36
}
37
37
38
38
QgsMapRendererCustomPainterJob::~QgsMapRendererCustomPainterJob ()
39
39
{
40
- QgsDebugMsg ( " QPAINTER destruct" );
40
+ QgsDebugMsgLevel ( " QPAINTER destruct" , 5 );
41
41
Q_ASSERT ( !mFutureWatcher .isRunning () );
42
42
// cancel();
43
43
}
@@ -53,9 +53,9 @@ void QgsMapRendererCustomPainterJob::start()
53
53
54
54
mErrors .clear ();
55
55
56
- QgsDebugMsg ( " QPAINTER run!" );
56
+ QgsDebugMsgLevel ( " QPAINTER run!" , 5 );
57
57
58
- QgsDebugMsg ( " Preparing list of layer jobs for rendering" );
58
+ QgsDebugMsgLevel ( " Preparing list of layer jobs for rendering" , 5 );
59
59
QTime prepareTime;
60
60
prepareTime.start ();
61
61
@@ -82,7 +82,7 @@ void QgsMapRendererCustomPainterJob::start()
82
82
mLayerJobs = prepareJobs ( mPainter , mLabelingEngineV2 .get () );
83
83
mLabelJob = prepareLabelingJob ( mPainter , mLabelingEngineV2 .get (), canUseLabelCache );
84
84
85
- QgsDebugMsg ( " Rendering prepared in (seconds): " + QString ( " %1" ).arg ( prepareTime.elapsed () / 1000.0 ) );
85
+ QgsDebugMsgLevel ( " Rendering prepared in (seconds): " + QString ( " %1" ).arg ( prepareTime.elapsed () / 1000.0 ), 4 );
86
86
87
87
if ( mRenderSynchronously )
88
88
{
@@ -103,11 +103,11 @@ void QgsMapRendererCustomPainterJob::cancel()
103
103
{
104
104
if ( !isActive () )
105
105
{
106
- QgsDebugMsg ( " QPAINTER not running!" );
106
+ QgsDebugMsgLevel ( " QPAINTER not running!" , 4 );
107
107
return ;
108
108
}
109
109
110
- QgsDebugMsg ( " QPAINTER canceling" );
110
+ QgsDebugMsgLevel ( " QPAINTER canceling" , 5 );
111
111
disconnect ( &mFutureWatcher , &QFutureWatcher<void >::finished, this , &QgsMapRendererCustomPainterJob::futureFinished );
112
112
cancelWithoutBlocking ();
113
113
@@ -116,11 +116,11 @@ void QgsMapRendererCustomPainterJob::cancel()
116
116
117
117
mFutureWatcher .waitForFinished ();
118
118
119
- QgsDebugMsg ( QString ( " QPAINER cancel waited %1 ms" ).arg ( t.elapsed () / 1000.0 ) );
119
+ QgsDebugMsgLevel ( QString ( " QPAINER cancel waited %1 ms" ).arg ( t.elapsed () / 1000.0 ), 5 );
120
120
121
121
futureFinished ();
122
122
123
- QgsDebugMsg ( " QPAINTER canceled" );
123
+ QgsDebugMsgLevel ( " QPAINTER canceled" , 5 );
124
124
}
125
125
126
126
void QgsMapRendererCustomPainterJob::cancelWithoutBlocking ()
@@ -152,7 +152,7 @@ void QgsMapRendererCustomPainterJob::waitForFinished()
152
152
153
153
mFutureWatcher .waitForFinished ();
154
154
155
- QgsDebugMsg ( QString ( " waitForFinished: %1 ms" ).arg ( t.elapsed () / 1000.0 ) );
155
+ QgsDebugMsgLevel ( QString ( " waitForFinished: %1 ms" ).arg ( t.elapsed () / 1000.0 ), 4 );
156
156
157
157
futureFinished ();
158
158
}
@@ -197,7 +197,7 @@ void QgsMapRendererCustomPainterJob::futureFinished()
197
197
{
198
198
mActive = false ;
199
199
mRenderingTime = mRenderingStart .elapsed ();
200
- QgsDebugMsg ( " QPAINTER futureFinished" );
200
+ QgsDebugMsgLevel ( " QPAINTER futureFinished" , 5 );
201
201
202
202
logRenderingTime ( mLayerJobs , mLabelJob );
203
203
@@ -233,7 +233,7 @@ void QgsMapRendererCustomPainterJob::staticRender( QgsMapRendererCustomPainterJo
233
233
234
234
void QgsMapRendererCustomPainterJob::doRender ()
235
235
{
236
- QgsDebugMsg ( " Starting to render layer stack." );
236
+ QgsDebugMsgLevel ( " Starting to render layer stack." , 5 );
237
237
QTime renderTime;
238
238
renderTime.start ();
239
239
@@ -277,7 +277,7 @@ void QgsMapRendererCustomPainterJob::doRender()
277
277
278
278
}
279
279
280
- QgsDebugMsg ( " Done rendering map layers" );
280
+ QgsDebugMsgLevel ( " Done rendering map layers" , 5 );
281
281
282
282
if ( mSettings .testFlag ( QgsMapSettings::DrawLabeling ) && !mLabelJob .context .renderingStopped () )
283
283
{
@@ -318,7 +318,7 @@ void QgsMapRendererCustomPainterJob::doRender()
318
318
319
319
void QgsMapRendererJob::drawLabeling ( const QgsMapSettings &settings, QgsRenderContext &renderContext, QgsLabelingEngine *labelingEngine2, QPainter *painter )
320
320
{
321
- QgsDebugMsg ( " Draw labeling start" );
321
+ QgsDebugMsgLevel ( " Draw labeling start" , 5 );
322
322
323
323
QTime t;
324
324
t.start ();
0 commit comments