Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use QgsFieldExpressionWidget in data defined properties #1352

Merged
merged 1 commit into from
May 15, 2014

Conversation

3nids
Copy link
Member

@3nids 3nids commented May 15, 2014

This uses the new field expression widget in data defined properties for a better UI coherence.
I had to const_cast QgsVectorLayer because QgsDataDefinedSymbolDialog uses a const layer pointer.
BTW, this fixes the fact that the help for the name symbol was not fully readable (was multiline).

@mhugent since you designed, can you tell me if it's ok for you?

new dialog:
image

old dialog:
image

@3nids 3nids added this to the 2.4 milestone May 15, 2014
@NathanW2
Copy link
Member

This looks good to me. In the future we should really do the same as the
label dialog because that UI is nicer IMO.
On May 15, 2014 5:09 PM, "Denis Rouzaud" notifications@github.com wrote:

This uses the new field expression widget in data defined properties for a
better UI coherence.
I had to const_cast QgsVectorLayer because QgsDataDefinedSymbolDialog uses
a const layer pointer.
BTW, this fixes the fact that the help for the name symbol was not fully
readable (was multiline).

@mhugent https://github.com/mhugent since you designed, can you tell me
if it's ok for you?

new dialog:
[image: image]https://cloud.githubusercontent.com/assets/127259/2981110/6fe0d5e6-dbff-11e3-838f-8ad7a7b701f0.png

old dialog:

[image: image]https://cloud.githubusercontent.com/assets/127259/2981097/3b527d20-dbff-11e3-98a3-02287f154b64.png

You can merge this Pull Request by running

git pull https://github.com/3nids/QGIS datadefined2

Or view, comment on, or merge it at:

#1352
Commit Summary

  • use QgsFieldExpressionWidget in data defined properties

File Changes

Patch Links:


Reply to this email directly or view it on GitHubhttps://github.com//pull/1352
.

@nyalldawson
Copy link
Collaborator

Composer will soon use the label settings data defined button too, so it would be great to standardize on this. It would actually be a nice touch to make the expression button in the qgsfieldexpression widget use the label style control too, since it has nice handling of copying/pasting expressions and help for acceptable formats...

@3nids
Copy link
Member Author

3nids commented May 15, 2014

@NathanW2 totally agree
@nyalldawson I believe thes QgsFieldExpressionWidget and QgsDataDefinedButton are two different beasts and should not be mixed. Once the custom widget PR merge #1325, I will add the data defined button to the library.

@mhugent
Copy link
Contributor

mhugent commented May 15, 2014

assigned to @m-kuhn

3nids added a commit that referenced this pull request May 15, 2014
use QgsFieldExpressionWidget in data defined properties
@3nids 3nids merged commit d8761de into qgis:master May 15, 2014
@3nids 3nids deleted the datadefined2 branch May 15, 2014 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants