summaryrefslogtreecommitdiffabout
path: root/kaddressbook
Side-by-side diff
Diffstat (limited to 'kaddressbook') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/views/cardview.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/kaddressbook/views/cardview.cpp b/kaddressbook/views/cardview.cpp
index 65f793c..6351c11 100644
--- a/kaddressbook/views/cardview.cpp
+++ b/kaddressbook/views/cardview.cpp
@@ -657,4 +657,5 @@ CardView::CardView(QWidget *parent, const char *name)
connect( d->mTimer, SIGNAL(timeout()), this, SLOT(tryShowFullText()) );
+ connect( this, SIGNAL(executed(CardViewItem *)), this, SIGNAL( doubleClicked(CardViewItem *)) );
//US setBackgroundMode(PaletteBackground, PaletteBase);
@@ -1267,5 +1268,5 @@ void CardView::contentsMouseDoubleClickEvent(QMouseEvent *e)
{
emit executed(item);
- }
+ } else
emit doubleClicked(item);
}
@@ -1454,6 +1455,8 @@ void CardView::keyPressEvent( QKeyEvent *e )
case Key_Return:
case Key_Enter:
+ {
emit returnPressed( d->mCurrentItem );
emit executed( d->mCurrentItem );
+ }
break;
default: