Hey Wim,
2010/11/1 Wim Dumon <[email protected]>
> I'd propose to use boost::bind:
> for(int i = 0; i < numRecords; ++i) {
> // Build your table here, including the buttons:
> WPushButton *b = new WPushButton("Show Record", this);
> b->clicked().connect(boost::bind(&MyClass::showRecordDetails, this, i));
> }
>
>
> void MyClass::showRecordDetails(int recordnumber)
> {
> // Update other form with information from 'recordnumber'
> ...;
> }
>
> In many cases, boost::bind() is a nice alternative to WSignalMapper.
>
Yep, thanks! Agree.
--
// Dmitriy.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest