31 QColorDialog::ColorDialogOptions options )
33 QColor returnColor( initialColor );
34 QColorDialog* liveDialog =
new QColorDialog( initialColor, parent );
35 liveDialog->setWindowTitle( title.isEmpty() ?
tr(
"Select Color" ) : title );
36 liveDialog->setOptions( options );
38 connect( liveDialog, SIGNAL( currentColorChanged(
const QColor& ) ),
39 updateObject, updateSlot );
41 if ( liveDialog->exec() )
43 returnColor = liveDialog->currentColor();