KColorDialog slot naming

John Tapsell johnflux at gmail.com
Fri Jul 3 03:59:13 BST 2009

Hi all,

  The API for KColorDialog is somewhat unfortunate.  Currently we have a signal:

     void colorSelected( const QColor &col );

  Which is emitted immediately when a color is selected.
  Qt instead has:

     void colorSelected( const QColor &col );
     void currentColorSelected( const QColor &col );

  Where "currentColorSelected" behaves like our "colorSelected" and
"colorSelected" is emitted only once - when the user presses Ok.

  I would like to have a signal like Qt's "colorSelected", but any
idea how we can solve this tangle?


More information about the kde-core-devel mailing list