Skip to content

Commit 996848d

Browse files
committed
fix lenny build: Qt::UniqueConnection only available in Qt >=4.6
1 parent aadb7d2 commit 996848d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,15 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
201201
QgsSymbolV2List symbols = r->symbols();
202202

203203
QgsSymbolLevelsV2Dialog dlg( symbols, r->usingSymbolLevels(), this );
204+
#if QT_VERSION >= 0x040600
204205
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ), Qt::UniqueConnection );
205206
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ), Qt::UniqueConnection );
207+
#else
208+
disconnect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
209+
disconnect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
210+
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
211+
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
212+
#endif
206213

207214
if ( dlg.exec() )
208215
{

0 commit comments

Comments
 (0)