-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use QgsColorButtonV2 for editor widgets
- Loading branch information
1 parent
a5b5bd4
commit 174c2f3
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174c2f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Nyall, good to have this nice button also integrated here.
Was support for the old button completely removed? I.e. is it thinkable, that somebody was using a
QgsColorButton
in a custom .ui file and that will no longer be supported becauseinitWidget
always assumes aQgsColorButtonV2
?174c2f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-kuhn Well, QgsColorButton still exists, but I don't know what would happen in that use case. Given that I'm honestly clueless how these editor widgets work, should I revert this commit for 2.6?
174c2f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only problem is that old custom UI file with QgsColorButton won't work anymore. But is it a real harm?
On the same idea, I will remove the QgsColorButton V1 from the custom widgets so people stop using it.