@@ -106,7 +106,6 @@ QgsStyleV2ExportImportDialog::QgsStyleV2ExportImportDialog( QgsStyleV2* style, Q
106
106
}
107
107
108
108
}
109
-
110
109
// use Ok button for starting import and export operations
111
110
disconnect ( buttonBox, SIGNAL ( accepted () ), this , SLOT ( accept () ) );
112
111
connect ( buttonBox, SIGNAL ( accepted () ), this , SLOT ( doExportImport () ) );
@@ -393,7 +392,6 @@ void QgsStyleV2ExportImportDialog::clearSelection()
393
392
listItems->clearSelection ();
394
393
}
395
394
396
-
397
395
void QgsStyleV2ExportImportDialog::selectSymbols ( const QStringList symbolNames )
398
396
{
399
397
foreach ( QString symbolName, symbolNames )
@@ -406,7 +404,6 @@ void QgsStyleV2ExportImportDialog::selectSymbols( const QStringList symbolNames
406
404
}
407
405
}
408
406
409
-
410
407
void QgsStyleV2ExportImportDialog::deselectSymbols ( const QStringList symbolNames )
411
408
{
412
409
foreach ( QString symbolName, symbolNames )
@@ -424,30 +421,35 @@ void QgsStyleV2ExportImportDialog::selectGroup( const QString groupName )
424
421
{
425
422
QStringList symbolNames = mQgisStyle ->symbolsOfGroup ( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle ->groupId ( groupName ) );
426
423
selectSymbols ( symbolNames );
424
+ symbolNames = mQgisStyle ->symbolsOfGroup ( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle ->groupId ( groupName ) );
425
+ selectSymbols ( symbolNames );
427
426
}
428
427
429
428
430
429
void QgsStyleV2ExportImportDialog::deselectGroup ( const QString groupName )
431
430
{
432
431
QStringList symbolNames = mQgisStyle ->symbolsOfGroup ( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle ->groupId ( groupName ) );
433
432
deselectSymbols ( symbolNames );
433
+ symbolNames = mQgisStyle ->symbolsOfGroup ( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle ->groupId ( groupName ) );
434
+ deselectSymbols ( symbolNames );
434
435
}
435
436
436
-
437
437
void QgsStyleV2ExportImportDialog::selectSmartgroup ( const QString groupName )
438
438
{
439
439
QStringList symbolNames = mQgisStyle ->symbolsOfSmartgroup ( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle ->smartgroupId ( groupName ) );
440
440
selectSymbols ( symbolNames );
441
+ symbolNames = mQgisStyle ->symbolsOfSmartgroup ( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle ->smartgroupId ( groupName ) );
442
+ selectSymbols ( symbolNames );
441
443
}
442
444
443
-
444
445
void QgsStyleV2ExportImportDialog::deselectSmartgroup ( const QString groupName )
445
446
{
446
447
QStringList symbolNames = mQgisStyle ->symbolsOfSmartgroup ( QgsStyleV2::StyleEntity::SymbolEntity, mQgisStyle ->smartgroupId ( groupName ) );
447
448
deselectSymbols ( symbolNames );
449
+ symbolNames = mQgisStyle ->symbolsOfSmartgroup ( QgsStyleV2::StyleEntity::ColorrampEntity, mQgisStyle ->smartgroupId ( groupName ) );
450
+ deselectSymbols ( symbolNames );
448
451
}
449
452
450
-
451
453
void QgsStyleV2ExportImportDialog::selectByGroup ( )
452
454
{
453
455
if ( ! mGroupSelectionDlg )
@@ -466,7 +468,6 @@ void QgsStyleV2ExportImportDialog::selectByGroup( )
466
468
mGroupSelectionDlg ->activateWindow ();
467
469
}
468
470
469
-
470
471
void QgsStyleV2ExportImportDialog::importTypeChanged ( int index )
471
472
{
472
473
QString type = importTypeCombo->itemData ( index ).toString ();
0 commit comments