On Tuesday 03 May 2011 19:49:59 Pavel Sanda wrote:
> nice way how to avoid answer :)
> pavel

If it were me I would do it like this:

connect(table,        SIGNAL(rowsChanged(int)),     rowsSB,    
SLOT(setValue(int)));
connect(table,        SIGNAL(colsChanged(int)),     columnsSB, 
SLOT(setValue(int)));
connect(rowsSB,       SIGNAL(valueChanged(int)),    table,     
SLOT(setNumberRows(int)));
connect(columnsSB,    SIGNAL(valueChanged(int)),    table,     
SLOT(setNumberColumns(int)));
connect(rowsSB,       SIGNAL(valueChanged(int)),    this,      
SLOT(change_adaptor()));
connect(columnsSB,    SIGNAL(valueChanged(int)),    this,      
SLOT(columnsChanged(int)) );
connect(valignCO,     SIGNAL(highlighted(QString)), this,      
SLOT(change_adaptor()));
connect(halignED,     SIGNAL(textChanged(QString)), this,      
SLOT(change_adaptor()));
connect(decorationCO, SIGNAL(activated(int)),       this,      
SLOT(decorationChanged(int)));

The same can be done in the wrapped version.

-- 
José Abílio

Reply via email to