When converting from QPalette, use windowText() instead of text() which is what the previous implementation was doing.