mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
More style manager fixes:
- disable ramp actions when nothing selected - disabled Edit item when nothing selected - rename "Apply group" to "Add to group"
This commit is contained in:
parent
32e2849c0b
commit
fcef952a10
@ -142,7 +142,7 @@ QgsStyleV2ManagerDialog::QgsStyleV2ManagerDialog( QgsStyleV2* style, QWidget* pa
|
||||
// Context menu for symbols/colorramps. The menu entries for every group are created when displaying the menu.
|
||||
mGroupMenu = new QMenu( this );
|
||||
mGroupListMenu = new QMenu( mGroupMenu );
|
||||
mGroupListMenu->setTitle( tr( "Apply Group" ) );
|
||||
mGroupListMenu->setTitle( tr( "Add to group" ) );
|
||||
mGroupListMenu->setEnabled( false );
|
||||
mGroupMenu->addMenu( mGroupListMenu );
|
||||
actnUngroup->setData( 0 );
|
||||
@ -301,6 +301,8 @@ void QgsStyleV2ManagerDialog::populateColorRamps( const QStringList& colorRamps,
|
||||
model->appendRow( item );
|
||||
delete ramp;
|
||||
}
|
||||
selectedSymbolsChanged( QItemSelection(), QItemSelection() );
|
||||
symbolSelected( listItems->currentIndex() );
|
||||
}
|
||||
|
||||
int QgsStyleV2ManagerDialog::currentItemType()
|
||||
@ -1303,6 +1305,7 @@ void QgsStyleV2ManagerDialog::selectedSymbolsChanged( const QItemSelection& sele
|
||||
actnUngroup->setDisabled( nothingSelected );
|
||||
actnExportAsPNG->setDisabled( nothingSelected );
|
||||
actnExportAsSVG->setDisabled( nothingSelected );
|
||||
actnEditItem->setDisabled( nothingSelected );
|
||||
}
|
||||
|
||||
void QgsStyleV2ManagerDialog::enableSymbolInputs( bool enable )
|
||||
|
Loading…
x
Reference in New Issue
Block a user