Skip to content
Permalink
Browse files
remove useless argument
  • Loading branch information
3nids committed Jun 6, 2014
1 parent f380df1 commit b4b3139ffe501afbed3da628dccae5fe0ccf2cec
Showing with 3 additions and 5 deletions.
  1. +2 −4 src/gui/qgsfieldexpressionwidget.cpp
  2. +1 −1 src/gui/qgsfieldexpressionwidget.h
@@ -50,7 +50,7 @@ QgsFieldExpressionWidget::QgsFieldExpressionWidget( QWidget *parent )

connect( mCombo->lineEdit(), SIGNAL( textEdited( QString ) ), this, SLOT( expressionEdited( QString ) ) );
connect( mCombo->lineEdit(), SIGNAL( editingFinished() ), this, SLOT( expressionEditingFinished() ) );
connect( mCombo, SIGNAL( activated( int ) ), this, SLOT( currentFieldChanged( int ) ) );
connect( mCombo, SIGNAL( activated( int ) ), this, SLOT( currentFieldChanged() ) );
connect( mButton, SIGNAL( clicked() ), this, SLOT( editExpression() ) );
}

@@ -187,10 +187,8 @@ void QgsFieldExpressionWidget::changeEvent( QEvent* event )
}
}

void QgsFieldExpressionWidget::currentFieldChanged( int i /* =0 */ )
void QgsFieldExpressionWidget::currentFieldChanged()
{
Q_UNUSED( i );

updateLineEditStyle();

bool isExpression, isValid;
@@ -102,7 +102,7 @@ class GUI_EXPORT QgsFieldExpressionWidget : public QWidget
//! when expression has been edited (finished) it will be added to the model
void expressionEditingFinished();

void currentFieldChanged( int i = 0 );
void currentFieldChanged();

/**
* @brief updateLineEditStyle will re-style (color/font) the line edit depending on content and status

0 comments on commit b4b3139

Please sign in to comment.