Skip to content

Commit

Permalink
Fix for compilers that do not cope with template argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 18, 2012
1 parent a2d0ee8 commit 396c431
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/gui/symbology-ng/qgscptcitycolorrampv2dialog.cpp
Expand Up @@ -290,7 +290,7 @@ void QgsCptCityColorRampV2Dialog::updateTreeView( QgsCptCityDataItem *item, bool
lblSchemePath->setText( "" );
// lblCollectionName->setText( item->path() );
lblCollectionInfo->setText( item->info() );
updateCopyingInfo( );
clearCopyingInfo( );
updateListWidget( item );
}
else
Expand Down Expand Up @@ -434,6 +434,11 @@ void QgsCptCityColorRampV2Dialog::updatePreview( bool clear )
updateCopyingInfo( mRamp->copyingInfo() );
}

void QgsCptCityColorRampV2Dialog::clearCopyingInfo()
{
updateCopyingInfo( QMap< QString, QString >() );
}

void QgsCptCityColorRampV2Dialog::updateCopyingInfo( const QMap< QString, QString >& copyingMap )
{
QString authorStr = copyingMap.value( "authors" );
Expand Down Expand Up @@ -544,7 +549,7 @@ bool QgsCptCityColorRampV2Dialog::updateRamp()
mListRamps.clear();
cboVariantName->clear();
updatePreview( true );
updateCopyingInfo( );
clearCopyingInfo( );

QgsDebugMsg( "schemeName= " + mRamp->schemeName() );
if ( mRamp->schemeName() == "" )
Expand Down
3 changes: 2 additions & 1 deletion src/gui/symbology-ng/qgscptcitycolorrampv2dialog.h
Expand Up @@ -56,7 +56,8 @@ class GUI_EXPORT QgsCptCityColorRampV2Dialog : public QDialog, private Ui::QgsCp
protected:

void updatePreview( bool clear = false );
void updateCopyingInfo( const QMap< QString, QString >& copyingMap = QMap< QString, QString >() );
void clearCopyingInfo();
void updateCopyingInfo( const QMap< QString, QString >& copyingMap );
void updateTreeView( QgsCptCityDataItem *item, bool resetRamp = true );
void updateListWidget( QgsCptCityDataItem *item );
bool eventFilter( QObject *obj, QEvent *event );
Expand Down

0 comments on commit 396c431

Please sign in to comment.