Example #1
0
void QTodoSettings::colorButtonClicked()
{
	QPushButton* button = dynamic_cast<QPushButton*>(const_cast<QObject*>(sender()));
	QColor col = QColorDialog::getColor(button->paletteBackgroundColor());
	if(col.isValid())
		button->setPaletteBackgroundColor(col);
}