Replace deprecated API
Merge pull request #1427 from simonsonc/qgscolorbutton-deprecated-api

Replace deprecated API