Re: [sigc] is possible make the emission of a signal private for a particular class?



On Thu, May 6, 2010 at 8:45 AM, Murray Cumming <murrayc murrayc com> wrote:
I'm not sure that Qt's signals can't be emitted by other classes, though
I'd like to know for sure.

It's true - Qt signals are either private or protected, i don't remember which. i do remember, however, adding proxy functions to allow other classes to fire the signal, e.g.

public:
void emitMySignal()
{
  emit ....;
}
 
--
----- stephan beal
http://wanderinghorse.net/home/stephan/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]