Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Stopped emission of CharacterClicked signal when a selection is active.
  • Loading branch information
FBergeron committed Oct 4, 2009
1 parent d86594e commit 92167d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ScrollableLineEdit.cpp
Expand Up @@ -1059,7 +1059,8 @@ void ScrollableLineEdit::mouseReleaseEvent( QMouseEvent * e )
repaintArea( m1, mousePos );
int ncp = xPosToCursorPos( e->pos().x() );
const QChar& c = text().at( ncp );
emit( characterClicked( c, e->pos() ) );
if( !hasMarkedText() )
emit( characterClicked( c, e->pos() ) );
}


Expand Down
3 changes: 2 additions & 1 deletion src/ScrollableMultiLineEdit.cpp
Expand Up @@ -28,5 +28,6 @@ void ScrollableMultiLineEdit::mouseReleaseEvent( QMouseEvent* e ) {
int column;
getCursorPosition( &line, &column );
const QChar& c = textLine( line ).at( column );
emit( characterClicked( c, e->pos() ) );
if( !hasMarkedText() )
emit( characterClicked( c, e->pos() ) );
}

0 comments on commit 92167d3

Please sign in to comment.