Skip to content
Permalink
Browse files

fix lenny build: Qt::UniqueConnection only available in Qt >=4.6

  • Loading branch information
jef-n committed May 12, 2011
1 parent aadb7d2 commit 996848d4e46d2a8801fac79d7bb91390ea7f4e21
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/gui/symbology-ng/qgsrendererv2propertiesdialog.cpp
@@ -201,8 +201,15 @@ void QgsRendererV2PropertiesDialog::showSymbolLevels()
QgsSymbolV2List symbols = r->symbols();

QgsSymbolLevelsV2Dialog dlg( symbols, r->usingSymbolLevels(), this );
#if QT_VERSION >= 0x040600
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ), Qt::UniqueConnection );
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ), Qt::UniqueConnection );
#else
disconnect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
disconnect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
connect( this, SIGNAL( forceChkUsingFirstRule() ), mActiveWidget, SLOT( forceUsingFirstRule() ) );
connect( this, SIGNAL( forceUncheckSymbolLevels() ), mActiveWidget, SLOT( forceNoSymbolLevels() ) );
#endif

if ( dlg.exec() )
{

0 comments on commit 996848d

Please sign in to comment.
You can’t perform that action at this time.