From c7cda5d104efd75ab608384215e40a541697392e Mon Sep 17 00:00:00 2001 From: drw Date: Sat, 12 Mar 2005 00:45:16 +0000 Subject: Fix OColorButton so it does not emit a colorSelected signal inside of resizeEvent --- (limited to 'libqtaux/ocolorbutton.h') diff --git a/libqtaux/ocolorbutton.h b/libqtaux/ocolorbutton.h index 10b77d5..4845c0d 100644 --- a/libqtaux/ocolorbutton.h +++ b/libqtaux/ocolorbutton.h @@ -3,25 +3,25 @@ Copyright (C) Robert Griebl =. Copyright (C) The Opie Team .=l. -           .>+-= - _;:,     .>    :=|. This program is free software; you can -.> <`_,   >  .   <= redistribute it and/or modify it under -:`=1 )Y*s>-.--   : the terms of the GNU Library General Public -.="- .-=="i,     .._ License as published by the Free Software - - .   .-<_>     .<> Foundation; either version 2 of the License, -     ._= =}       : or (at your option) any later version. -    .%`+i>       _;_. -    .i_,=:_.      -`: PARTICULAR PURPOSE. See the GNU -..}^=.=       =       ; Library General Public License for more -++=   -.     .`     .: details. - :     =  ...= . :.=- - -.   .:....=;==+<; You should have received a copy of the GNU -  -_. . .   )=.  = Library General Public License along with -    --        :-=` this library; see the file COPYING.LIB. + .>+-= +_;:, .> :=|. This program is free software; you can +.> <`_, > . <= redistribute it and/or modify it under +:`=1 )Y*s>-.-- : the terms of the GNU Library General Public +.="- .-=="i, .._ License as published by the Free Software +- . .-<_> .<> Foundation; either version 2 of the License, + ._= =} : or (at your option) any later version. + .%`+i> _;_. + .i_,=:_. -`: PARTICULAR PURPOSE. See the GNU +..}^=.= = ; Library General Public License for more +++= -. .` .: details. +: = ...= . :.=- +-. .:....=;==+<; You should have received a copy of the GNU + -_. . . )=. = Library General Public License along with + -- :-=` this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -54,9 +54,9 @@ public: virtual ~OColorButton ( ); QColor color ( ) const; - + protected: - void resizeEvent( QResizeEvent* ); + void resizeEvent( QResizeEvent* ); signals: /** @@ -75,6 +75,8 @@ protected slots: private: OColorButtonPrivate *d; + + void updateColor ( const QColor &, bool sendSignal = true ); }; }; -- cgit v0.9.0.2