Correct argument of dbuModeChanged and changeDbuMode consistently (to unigned int)

This commit is contained in:
Jean-Paul Chaput 2010-05-17 16:37:14 +00:00
parent 92e0a06744
commit bca3815efe
6 changed files with 16 additions and 16 deletions

View File

@ -297,8 +297,8 @@ namespace Hurricane {
connect ( _controllerAction , SIGNAL(triggered()) , _controller, SLOT(toggleShow()) ); connect ( _controllerAction , SIGNAL(triggered()) , _controller, SLOT(toggleShow()) );
connect ( _gotoAction , SIGNAL(triggered()) , this , SLOT(doGoto()) ); connect ( _gotoAction , SIGNAL(triggered()) , this , SLOT(doGoto()) );
connect ( _cellWidget , SIGNAL(dbuModeChanged(int,DbU::UnitPower)) connect ( _cellWidget , SIGNAL(dbuModeChanged(unsigned int,DbU::UnitPower))
, _goto , SLOT (changeDbuMode (int,DbU::UnitPower)) ); , _goto , SLOT (changeDbuMode (unsigned int,DbU::UnitPower)) );
connect ( _cellWidget , SIGNAL(mousePositionChanged(const Point&)) connect ( _cellWidget , SIGNAL(mousePositionChanged(const Point&))
, _mousePosition , SLOT (setPosition(const Point&)) ); , _mousePosition , SLOT (setPosition(const Point&)) );

View File

@ -197,10 +197,10 @@ namespace Hurricane {
if ( _cellWidget ) { if ( _cellWidget ) {
disconnect ( this , SIGNAL(queryFilterChanged()), _cellWidget, SLOT(changeQueryFilter()) ); disconnect ( this , SIGNAL(queryFilterChanged()), _cellWidget, SLOT(changeQueryFilter()) );
disconnect ( _cellWidget , SIGNAL(queryFilterChanged()), this , SLOT(changeQueryFilter()) ); disconnect ( _cellWidget , SIGNAL(queryFilterChanged()), this , SLOT(changeQueryFilter()) );
disconnect ( this , SIGNAL(dbuModeChanged (int,DbU::UnitPower)) disconnect ( this , SIGNAL(dbuModeChanged (unsigned int,DbU::UnitPower))
, _cellWidget , SLOT (changeDbuMode (int,DbU::UnitPower)) ); , _cellWidget , SLOT (changeDbuMode (unsigned int,DbU::UnitPower)) );
disconnect ( _cellWidget , SIGNAL(dbuModeChanged (int,DbU::UnitPower)) disconnect ( _cellWidget , SIGNAL(dbuModeChanged (unsigned int,DbU::UnitPower))
, this , SLOT (changeDbuMode (int,DbU::UnitPower)) ); , this , SLOT (changeDbuMode (unsigned int,DbU::UnitPower)) );
} }
_cellWidget = cw; _cellWidget = cw;
@ -208,10 +208,10 @@ namespace Hurricane {
connect ( this , SIGNAL(queryFilterChanged()), _cellWidget, SLOT(changeQueryFilter()) ); connect ( this , SIGNAL(queryFilterChanged()), _cellWidget, SLOT(changeQueryFilter()) );
connect ( _cellWidget , SIGNAL(queryFilterChanged()), this , SLOT(changeQueryFilter()) ); connect ( _cellWidget , SIGNAL(queryFilterChanged()), this , SLOT(changeQueryFilter()) );
connect ( this , SIGNAL(dbuModeChanged (int,DbU::UnitPower)) connect ( this , SIGNAL(dbuModeChanged (unsigned int,DbU::UnitPower))
, _cellWidget , SLOT (changeDbuMode (int,DbU::UnitPower)) ); , _cellWidget , SLOT (changeDbuMode (unsigned int,DbU::UnitPower)) );
connect ( _cellWidget , SIGNAL(dbuModeChanged (int,DbU::UnitPower)) connect ( _cellWidget , SIGNAL(dbuModeChanged (unsigned int,DbU::UnitPower))
, this , SLOT (changeDbuMode (int,DbU::UnitPower)) ); , this , SLOT (changeDbuMode (unsigned int,DbU::UnitPower)) );
_updateState = ExternalEmit; _updateState = ExternalEmit;
changeQueryFilter (); changeQueryFilter ();
@ -219,7 +219,7 @@ namespace Hurricane {
} }
void DisplayFilterWidget::changeDbuMode ( int mode, DbU::UnitPower p ) void DisplayFilterWidget::changeDbuMode ( unsigned int mode, DbU::UnitPower p )
{ {
if ( _cellWidget == NULL ) return; if ( _cellWidget == NULL ) return;

View File

@ -136,7 +136,7 @@ namespace Hurricane {
} }
void GotoWidget::changeDbuMode ( int mode, DbU::UnitPower p ) void GotoWidget::changeDbuMode ( unsigned int mode, DbU::UnitPower p )
{ {
if ( mode == DbU::Physical ) { if ( mode == DbU::Physical ) {
switch ( p ) { switch ( p ) {

View File

@ -252,7 +252,7 @@ namespace Hurricane {
void stateChanged ( shared_ptr<CellWidget::State>& ); void stateChanged ( shared_ptr<CellWidget::State>& );
void styleChanged (); void styleChanged ();
void queryFilterChanged (); void queryFilterChanged ();
void dbuModeChanged ( int mode, DbU::UnitPower ); void dbuModeChanged ( unsigned int mode, DbU::UnitPower );
void updatePalette ( Cell* ); void updatePalette ( Cell* );
void mousePositionChanged ( const Point& position ); void mousePositionChanged ( const Point& position );
void selectionModeChanged (); void selectionModeChanged ();

View File

@ -47,10 +47,10 @@ namespace Hurricane {
void setCellWidget ( CellWidget* ); void setCellWidget ( CellWidget* );
signals: signals:
void queryFilterChanged (); void queryFilterChanged ();
void dbuModeChanged ( int mode, DbU::UnitPower ); void dbuModeChanged ( unsigned int mode, DbU::UnitPower );
public slots: public slots:
void changeQueryFilter (); void changeQueryFilter ();
void changeDbuMode ( int mode, DbU::UnitPower ); void changeDbuMode ( unsigned int mode, DbU::UnitPower );
void startLevelChanged ( int level ); void startLevelChanged ( int level );
void stopLevelChanged ( int level ); void stopLevelChanged ( int level );
void setDoMasterCells ( int state ); void setDoMasterCells ( int state );

View File

@ -53,7 +53,7 @@ namespace Hurricane {
double fromDbu ( DbU::Unit ) const; double fromDbu ( DbU::Unit ) const;
public slots: public slots:
void acceptAndUpdate (); void acceptAndUpdate ();
void changeDbuMode ( int, DbU::UnitPower ); void changeDbuMode ( unsigned int, DbU::UnitPower );
private: private:
QRegExp _xyRegexp; QRegExp _xyRegexp;
QLineEdit* _xyEdit; QLineEdit* _xyEdit;