Feature request #10779

Layer Properties - "displayed as" should work as Alias for layer instead of echoing Layer Name

Added by Antonio Locandro over 2 years ago. Updated almost 2 years ago.

Status:Open Start Date:07/02/2014
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:Future Release - Nice to have
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

Description

Based on #10658

"Layer name could be the name in a postgis table for example, displayed as I would say should work more like an alias, in my opinion Layer name shouldn't be editable and just be read only as this gives you the name of the layer in provider, displayed as should be editable so people can use another name if desired, of course by default it would echo layer name

As it is right now it's useless but as I have outlined above it could be useful"

Additionally the behaviour is backward in 2.4. Displayed as is read only (should be used as alias), Layer name is editable (shouldn't) and echoes to displayed as


Related issues

related to QGIS Application - Bug report #10658: Repeated Layer name Open 06/20/2014

History

Updated by Hugo Mercier almost 2 years ago

The "displayed as" field is different if the "capitalize layer names" option is enabled ...
I agree this is confusing. Even with the option enabled, only one layer name should be kept.

About aliases : names are already aliases. Everything in the code relies on the layer's id (unique and set at the creation, not editable) rather than on its name.

I suggest :
  • get rid of the "displayed as" field
  • keep the "name" editable

What do you think ?

Updated by Antonio Locandro almost 2 years ago

That would match the other COTS behaviour, I guess if you want to get the original name Layer source right below it would provide it.

+1

Also available in: Atom