Skip to content

Commit

Permalink
use new style for signal-slot connection
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 14, 2017
1 parent 2ccdbc9 commit 0dc61cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgspasswordlineedit.cpp
Expand Up @@ -35,7 +35,7 @@ QgsPasswordLineEdit::QgsPasswordLineEdit( QWidget *parent )
mActionLock = addAction( QgsApplication::getThemeIcon( "/lockedGray.svg" ), QLineEdit::LeadingPosition );
}

connect( mActionShowHidePassword, SIGNAL( triggered( bool ) ), this, SLOT( togglePasswordVisibility( bool ) ) );
connect( mActionShowHidePassword, &QAction::triggered, this, &QgsPasswordLineEdit::togglePasswordVisibility );
}

void QgsPasswordLineEdit::togglePasswordVisibility( bool toggled )
Expand Down

0 comments on commit 0dc61cb

Please sign in to comment.